1 //------------------------------------------------------------------------------
2 // <auto-generated>
3 // This code was generated by a tool.
4 // Runtime Version:4.0.30319.34209
5 //
6 // Changes to this file may cause incorrect behavior and will be lost if
7 // the code is regenerated.
8 // </auto-generated>
9 //------------------------------------------------------------------------------
10
11 #pragma warning disable 1591
12
13 namespace WarehouseManagementSystem {
14
15
16 /// <summary>
17 ///Represents a strongly typed in-memory cache of data.
18 ///</summary>
19 [global::System.Serializable()]
20 [global::System.ComponentModel.DesignerCategoryAttribute("code")]
21 [global::System.ComponentModel.ToolboxItem(true)]
22 [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedDataSetSchema")]
23 [global::System.Xml.Serialization.XmlRootAttribute("POS_DBDataSet")]
24 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")]
25 public partial class POS_DBDataSet : global::System.Data.DataSet {
26
27 private CategoryDataTable tableCategory;
28
29 private CustomerDataTable tableCustomer;
30
31 private Invoice_InfoDataTable tableInvoice_Info;
32
33 private ProductDataTable tableProduct;
34
35 private ProductSoldDataTable tableProductSold;
36
37 private RegistrationDataTable tableRegistration;
38
39 private StockDataTable tableStock;
40
41 private SubCategoryDataTable tableSubCategory;
42
43 private SupplierDataTable tableSupplier;
44
45 private Temp_StockDataTable tableTemp_Stock;
46
47 private global::System.Data.DataRelation relationFK_Table_Customer;
48
49 private global::System.Data.DataRelation relationFK_Product_ToCategory;
50
51 private global::System.Data.DataRelation relationFK_Product_ToSubCategory;
52
53 private global::System.Data.DataRelation relationFK_ProductSold_Product;
54
55 private global::System.Data.DataRelation relationFK_Table_InvoiceInfo;
56
57 private global::System.Data.DataRelation relationFK_Stock_Product;
58
59 private global::System.Data.DataRelation relationFK_Stock_Supplier;
60
61 private global::System.Data.DataRelation relationFK_SubCategory_ToCategory;
62
63 private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
64
65 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
66 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
67 public POS_DBDataSet() {
68 this.BeginInit();
69 this.InitClass();
70 global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
71 base.Tables.CollectionChanged += schemaChangedHandler;
72 base.Relations.CollectionChanged += schemaChangedHandler;
73 this.EndInit();
74 }
75
76 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
77 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
78 protected POS_DBDataSet(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
79 base(info, context, false) {
80 if ((this.IsBinarySerialized(info, context) == true)) {
81 this.InitVars(false);
82 global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler1 = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
83 this.Tables.CollectionChanged += schemaChangedHandler1;
84 this.Relations.CollectionChanged += schemaChangedHandler1;
85 return;
86 }
87 string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string))));
88 if ((this.DetermineSchemaSerializationMode(info, context) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
89 global::System.Data.DataSet ds = new global::System.Data.DataSet();
90 ds.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
91 if ((ds.Tables["Category"] != null)) {
92 base.Tables.Add(new CategoryDataTable(ds.Tables["Category"]));
93 }
94 if ((ds.Tables["Customer"] != null)) {
95 base.Tables.Add(new CustomerDataTable(ds.Tables["Customer"]));
96 }
97 if ((ds.Tables["Invoice_Info"] != null)) {
98 base.Tables.Add(new Invoice_InfoDataTable(ds.Tables["Invoice_Info"]));
99 }
100 if ((ds.Tables["Product"] != null)) {
101 base.Tables.Add(new ProductDataTable(ds.Tables["Product"]));
102 }
103 if ((ds.Tables["ProductSold"] != null)) {
104 base.Tables.Add(new ProductSoldDataTable(ds.Tables["ProductSold"]));
105 }
106 if ((ds.Tables["Registration"] != null)) {
107 base.Tables.Add(new RegistrationDataTable(ds.Tables["Registration"]));
108 }
109 if ((ds.Tables["Stock"] != null)) {
110 base.Tables.Add(new StockDataTable(ds.Tables["Stock"]));
111 }
112 if ((ds.Tables["SubCategory"] != null)) {
113 base.Tables.Add(new SubCategoryDataTable(ds.Tables["SubCategory"]));
114 }
115 if ((ds.Tables["Supplier"] != null)) {
116 base.Tables.Add(new SupplierDataTable(ds.Tables["Supplier"]));
117 }
118 if ((ds.Tables["Temp_Stock"] != null)) {
119 base.Tables.Add(new Temp_StockDataTable(ds.Tables["Temp_Stock"]));
120 }
121 this.DataSetName = ds.DataSetName;
122 this.Prefix = ds.Prefix;
123 this.Namespace = ds.Namespace;
124 this.Locale = ds.Locale;
125 this.CaseSensitive = ds.CaseSensitive;
126 this.EnforceConstraints = ds.EnforceConstraints;
127 this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
128 this.InitVars();
129 }
130 else {
131 this.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
132 }
133 this.GetSerializationData(info, context);
134 global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
135 base.Tables.CollectionChanged += schemaChangedHandler;
136 this.Relations.CollectionChanged += schemaChangedHandler;
137 }
138
139 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
140 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
141 [global::System.ComponentModel.Browsable(false)]
142 [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
143 public CategoryDataTable Category {
144 get {
145 return this.tableCategory;
146 }
147 }
148
149 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
150 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
151 [global::System.ComponentModel.Browsable(false)]
152 [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
153 public CustomerDataTable Customer {
154 get {
155 return this.tableCustomer;
156 }
157 }
158
159 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
160 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
161 [global::System.ComponentModel.Browsable(false)]
162 [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
163 public Invoice_InfoDataTable Invoice_Info {
164 get {
165 return this.tableInvoice_Info;
166 }
167 }
168
169 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
170 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
171 [global::System.ComponentModel.Browsable(false)]
172 [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
173 public ProductDataTable Product {
174 get {
175 return this.tableProduct;
176 }
177 }
178
179 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
180 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
181 [global::System.ComponentModel.Browsable(false)]
182 [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
183 public ProductSoldDataTable ProductSold {
184 get {
185 return this.tableProductSold;
186 }
187 }
188
189 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
190 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
191 [global::System.ComponentModel.Browsable(false)]
192 [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
193 public RegistrationDataTable Registration {
194 get {
195 return this.tableRegistration;
196 }
197 }
198
199 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
200 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
201 [global::System.ComponentModel.Browsable(false)]
202 [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
203 public StockDataTable Stock {
204 get {
205 return this.tableStock;
206 }
207 }
208
209 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
210 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
211 [global::System.ComponentModel.Browsable(false)]
212 [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
213 public SubCategoryDataTable SubCategory {
214 get {
215 return this.tableSubCategory;
216 }
217 }
218
219 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
220 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
221 [global::System.ComponentModel.Browsable(false)]
222 [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
223 public SupplierDataTable Supplier {
224 get {
225 return this.tableSupplier;
226 }
227 }
228
229 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
230 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
231 [global::System.ComponentModel.Browsable(false)]
232 [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
233 public Temp_StockDataTable Temp_Stock {
234 get {
235 return this.tableTemp_Stock;
236 }
237 }
238
239 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
240 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
241 [global::System.ComponentModel.BrowsableAttribute(true)]
242 [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)]
243 public override global::System.Data.SchemaSerializationMode SchemaSerializationMode {
244 get {
245 return this._schemaSerializationMode;
246 }
247 set {
248 this._schemaSerializationMode = value;
249 }
250 }
251
252 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
253 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
254 [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
255 public new global::System.Data.DataTableCollection Tables {
256 get {
257 return base.Tables;
258 }
259 }
260
261 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
262 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
263 [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
264 public new global::System.Data.DataRelationCollection Relations {
265 get {
266 return base.Relations;
267 }
268 }
269
270 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
271 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
272 protected override void InitializeDerivedDataSet() {
273 this.BeginInit();
274 this.InitClass();
275 this.EndInit();
276 }
277
278 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
279 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
280 public override global::System.Data.DataSet Clone() {
281 POS_DBDataSet cln = ((POS_DBDataSet)(base.Clone()));
282 cln.InitVars();
283 cln.SchemaSerializationMode = this.SchemaSerializationMode;
284 return cln;
285 }
286
287 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
288 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
289 protected override bool ShouldSerializeTables() {
290 return false;
291 }
292
293 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
294 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
295 protected override bool ShouldSerializeRelations() {
296 return false;
297 }
298
299 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
300 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
301 protected override void ReadXmlSerializable(global::System.Xml.XmlReader reader) {
302 if ((this.DetermineSchemaSerializationMode(reader) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
303 this.Reset();
304 global::System.Data.DataSet ds = new global::System.Data.DataSet();
305 ds.ReadXml(reader);
306 if ((ds.Tables["Category"] != null)) {
307 base.Tables.Add(new CategoryDataTable(ds.Tables["Category"]));
308 }
309 if ((ds.Tables["Customer"] != null)) {
310 base.Tables.Add(new CustomerDataTable(ds.Tables["Customer"]));
311 }
312 if ((ds.Tables["Invoice_Info"] != null)) {
313 base.Tables.Add(new Invoice_InfoDataTable(ds.Tables["Invoice_Info"]));
314 }
315 if ((ds.Tables["Product"] != null)) {
316 base.Tables.Add(new ProductDataTable(ds.Tables["Product"]));
317 }
318 if ((ds.Tables["ProductSold"] != null)) {
319 base.Tables.Add(new ProductSoldDataTable(ds.Tables["ProductSold"]));
320 }
321 if ((ds.Tables["Registration"] != null)) {
322 base.Tables.Add(new RegistrationDataTable(ds.Tables["Registration"]));
323 }
324 if ((ds.Tables["Stock"] != null)) {
325 base.Tables.Add(new StockDataTable(ds.Tables["Stock"]));
326 }
327 if ((ds.Tables["SubCategory"] != null)) {
328 base.Tables.Add(new SubCategoryDataTable(ds.Tables["SubCategory"]));
329 }
330 if ((ds.Tables["Supplier"] != null)) {
331 base.Tables.Add(new SupplierDataTable(ds.Tables["Supplier"]));
332 }
333 if ((ds.Tables["Temp_Stock"] != null)) {
334 base.Tables.Add(new Temp_StockDataTable(ds.Tables["Temp_Stock"]));
335 }
336 this.DataSetName = ds.DataSetName;
337 this.Prefix = ds.Prefix;
338 this.Namespace = ds.Namespace;
339 this.Locale = ds.Locale;
340 this.CaseSensitive = ds.CaseSensitive;
341 this.EnforceConstraints = ds.EnforceConstraints;
342 this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
343 this.InitVars();
344 }
345 else {
346 this.ReadXml(reader);
347 this.InitVars();
348 }
349 }
350
351 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
352 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
353 protected override global::System.Xml.Schema.XmlSchema GetSchemaSerializable() {
354 global::System.IO.MemoryStream stream = new global::System.IO.MemoryStream();
355 this.WriteXmlSchema(new global::System.Xml.XmlTextWriter(stream, null));
356 stream.Position = 0;
357 return global::System.Xml.Schema.XmlSchema.Read(new global::System.Xml.XmlTextReader(stream), null);
358 }
359
360 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
361 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
362 internal void InitVars() {
363 this.InitVars(true);
364 }
365
366 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
367 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
368 internal void InitVars(bool initTable) {
369 this.tableCategory = ((CategoryDataTable)(base.Tables["Category"]));
370 if ((initTable == true)) {
371 if ((this.tableCategory != null)) {
372 this.tableCategory.InitVars();
373 }
374 }
375 this.tableCustomer = ((CustomerDataTable)(base.Tables["Customer"]));
376 if ((initTable == true)) {
377 if ((this.tableCustomer != null)) {
378 this.tableCustomer.InitVars();
379 }
380 }
381 this.tableInvoice_Info = ((Invoice_InfoDataTable)(base.Tables["Invoice_Info"]));
382 if ((initTable == true)) {
383 if ((this.tableInvoice_Info != null)) {
384 this.tableInvoice_Info.InitVars();
385 }
386 }
387 this.tableProduct = ((ProductDataTable)(base.Tables["Product"]));
388 if ((initTable == true)) {
389 if ((this.tableProduct != null)) {
390 this.tableProduct.InitVars();
391 }
392 }
393 this.tableProductSold = ((ProductSoldDataTable)(base.Tables["ProductSold"]));
394 if ((initTable == true)) {
395 if ((this.tableProductSold != null)) {
396 this.tableProductSold.InitVars();
397 }
398 }
399 this.tableRegistration = ((RegistrationDataTable)(base.Tables["Registration"]));
400 if ((initTable == true)) {
401 if ((this.tableRegistration != null)) {
402 this.tableRegistration.InitVars();
403 }
404 }
405 this.tableStock = ((StockDataTable)(base.Tables["Stock"]));
406 if ((initTable == true)) {
407 if ((this.tableStock != null)) {
408 this.tableStock.InitVars();
409 }
410 }
411 this.tableSubCategory = ((SubCategoryDataTable)(base.Tables["SubCategory"]));
412 if ((initTable == true)) {
413 if ((this.tableSubCategory != null)) {
414 this.tableSubCategory.InitVars();
415 }
416 }
417 this.tableSupplier = ((SupplierDataTable)(base.Tables["Supplier"]));
418 if ((initTable == true)) {
419 if ((this.tableSupplier != null)) {
420 this.tableSupplier.InitVars();
421 }
422 }
423 this.tableTemp_Stock = ((Temp_StockDataTable)(base.Tables["Temp_Stock"]));
424 if ((initTable == true)) {
425 if ((this.tableTemp_Stock != null)) {
426 this.tableTemp_Stock.InitVars();
427 }
428 }
429 this.relationFK_Table_Customer = this.Relations["FK_Table_Customer"];
430 this.relationFK_Product_ToCategory = this.Relations["FK_Product_ToCategory"];
431 this.relationFK_Product_ToSubCategory = this.Relations["FK_Product_ToSubCategory"];
432 this.relationFK_ProductSold_Product = this.Relations["FK_ProductSold_Product"];
433 this.relationFK_Table_InvoiceInfo = this.Relations["FK_Table_InvoiceInfo"];
434 this.relationFK_Stock_Product = this.Relations["FK_Stock_Product"];
435 this.relationFK_Stock_Supplier = this.Relations["FK_Stock_Supplier"];
436 this.relationFK_SubCategory_ToCategory = this.Relations["FK_SubCategory_ToCategory"];
437 }
438
439 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
440 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
441 private void InitClass() {
442 this.DataSetName = "POS_DBDataSet";
443 this.Prefix = "";
444 this.Namespace = "http://tempuri.org/POS_DBDataSet.xsd";
445 this.EnforceConstraints = false;
446 this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
447 this.tableCategory = new CategoryDataTable();
448 base.Tables.Add(this.tableCategory);
449 this.tableCustomer = new CustomerDataTable();
450 base.Tables.Add(this.tableCustomer);
451 this.tableInvoice_Info = new Invoice_InfoDataTable();
452 base.Tables.Add(this.tableInvoice_Info);
453 this.tableProduct = new ProductDataTable();
454 base.Tables.Add(this.tableProduct);
455 this.tableProductSold = new ProductSoldDataTable();
456 base.Tables.Add(this.tableProductSold);
457 this.tableRegistration = new RegistrationDataTable();
458 base.Tables.Add(this.tableRegistration);
459 this.tableStock = new StockDataTable();
460 base.Tables.Add(this.tableStock);
461 this.tableSubCategory = new SubCategoryDataTable();
462 base.Tables.Add(this.tableSubCategory);
463 this.tableSupplier = new SupplierDataTable();
464 base.Tables.Add(this.tableSupplier);
465 this.tableTemp_Stock = new Temp_StockDataTable();
466 base.Tables.Add(this.tableTemp_Stock);
467 this.relationFK_Table_Customer = new global::System.Data.DataRelation("FK_Table_Customer", new global::System.Data.DataColumn[] {
468 this.tableCustomer.CustomerIdColumn}, new global::System.Data.DataColumn[] {
469 this.tableInvoice_Info.CustomerIDColumn}, false);
470 this.Relations.Add(this.relationFK_Table_Customer);
471 this.relationFK_Product_ToCategory = new global::System.Data.DataRelation("FK_Product_ToCategory", new global::System.Data.DataColumn[] {
472 this.tableCategory.IDColumn}, new global::System.Data.DataColumn[] {
473 this.tableProduct.CategoryIDColumn}, false);
474 this.Relations.Add(this.relationFK_Product_ToCategory);
475 this.relationFK_Product_ToSubCategory = new global::System.Data.DataRelation("FK_Product_ToSubCategory", new global::System.Data.DataColumn[] {
476 this.tableSubCategory.IDColumn}, new global::System.Data.DataColumn[] {
477 this.tableProduct.SubCategoryIDColumn}, false);
478 this.Relations.Add(this.relationFK_Product_ToSubCategory);
479 this.relationFK_ProductSold_Product = new global::System.Data.DataRelation("FK_ProductSold_Product", new global::System.Data.DataColumn[] {
480 this.tableProduct.ProductIDColumn}, new global::System.Data.DataColumn[] {
481 this.tableProductSold.ProductIDColumn}, false);
482 this.Relations.Add(this.relationFK_ProductSold_Product);
483 this.relationFK_Table_InvoiceInfo = new global::System.Data.DataRelation("FK_Table_InvoiceInfo", new global::System.Data.DataColumn[] {
484 this.tableInvoice_Info.InvoiceNoColumn}, new global::System.Data.DataColumn[] {
485 this.tableProductSold.InvoiceNoColumn}, false);
486 this.Relations.Add(this.relationFK_Table_InvoiceInfo);
487 this.relationFK_Stock_Product = new global::System.Data.DataRelation("FK_Stock_Product", new global::System.Data.DataColumn[] {
488 this.tableProduct.ProductIDColumn}, new global::System.Data.DataColumn[] {
489 this.tableStock.ProductIDColumn}, false);
490 this.Relations.Add(this.relationFK_Stock_Product);
491 this.relationFK_Stock_Supplier = new global::System.Data.DataRelation("FK_Stock_Supplier", new global::System.Data.DataColumn[] {
492 this.tableSupplier.SupplierIdColumn}, new global::System.Data.DataColumn[] {
493 this.tableStock.SupplierIDColumn}, false);
494 this.Relations.Add(this.relationFK_Stock_Supplier);
495 this.relationFK_SubCategory_ToCategory = new global::System.Data.DataRelation("FK_SubCategory_ToCategory", new global::System.Data.DataColumn[] {
496 this.tableCategory.IDColumn}, new global::System.Data.DataColumn[] {
497 this.tableSubCategory.CategoryIDColumn}, false);
498 this.Relations.Add(this.relationFK_SubCategory_ToCategory);
499 }
500
501 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
502 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
503 private bool ShouldSerializeCategory() {
504 return false;
505 }
506
507 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
508 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
509 private bool ShouldSerializeCustomer() {
510 return false;
511 }
512
513 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
514 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
515 private bool ShouldSerializeInvoice_Info() {
516 return false;
517 }
518
519 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
520 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
521 private bool ShouldSerializeProduct() {
522 return false;
523 }
524
525 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
526 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
527 private bool ShouldSerializeProductSold() {
528 return false;
529 }
530
531 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
532 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
533 private bool ShouldSerializeRegistration() {
534 return false;
535 }
536
537 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
538 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
539 private bool ShouldSerializeStock() {
540 return false;
541 }
542
543 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
544 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
545 private bool ShouldSerializeSubCategory() {
546 return false;
547 }
548
549 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
550 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
551 private bool ShouldSerializeSupplier() {
552 return false;
553 }
554
555 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
556 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
557 private bool ShouldSerializeTemp_Stock() {
558 return false;
559 }
560
561 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
562 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
563 private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
564 if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) {
565 this.InitVars();
566 }
567 }
568
569 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
570 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
571 public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
572 POS_DBDataSet ds = new POS_DBDataSet();
573 global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
574 global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
575 global::System.Xml.Schema.XmlSchemaAny any = new global::System.Xml.Schema.XmlSchemaAny();
576 any.Namespace = ds.Namespace;
577 sequence.Items.Add(any);
578 type.Particle = sequence;
579 global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
580 if (xs.Contains(dsSchema.TargetNamespace)) {
581 global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
582 global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
583 try {
584 global::System.Xml.Schema.XmlSchema schema = null;
585 dsSchema.Write(s1);
586 for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
587 schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
588 s2.SetLength(0);
589 schema.Write(s2);
590 if ((s1.Length == s2.Length)) {
591 s1.Position = 0;
592 s2.Position = 0;
593 for (; ((s1.Position != s1.Length)
594 && (s1.ReadByte() == s2.ReadByte())); ) {
595 ;
596 }
597 if ((s1.Position == s1.Length)) {
598 return type;
599 }
600 }
601 }
602 }
603 finally {
604 if ((s1 != null)) {
605 s1.Close();
606 }
607 if ((s2 != null)) {
608 s2.Close();
609 }
610 }
611 }
612 xs.Add(dsSchema);
613 return type;
614 }
615
616 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
617 public delegate void CategoryRowChangeEventHandler(object sender, CategoryRowChangeEvent e);
618
619 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
620 public delegate void CustomerRowChangeEventHandler(object sender, CustomerRowChangeEvent e);
621
622 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
623 public delegate void Invoice_InfoRowChangeEventHandler(object sender, Invoice_InfoRowChangeEvent e);
624
625 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
626 public delegate void ProductRowChangeEventHandler(object sender, ProductRowChangeEvent e);
627
628 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
629 public delegate void ProductSoldRowChangeEventHandler(object sender, ProductSoldRowChangeEvent e);
630
631 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
632 public delegate void RegistrationRowChangeEventHandler(object sender, RegistrationRowChangeEvent e);
633
634 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
635 public delegate void StockRowChangeEventHandler(object sender, StockRowChangeEvent e);
636
637 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
638 public delegate void SubCategoryRowChangeEventHandler(object sender, SubCategoryRowChangeEvent e);
639
640 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
641 public delegate void SupplierRowChangeEventHandler(object sender, SupplierRowChangeEvent e);
642
643 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
644 public delegate void Temp_StockRowChangeEventHandler(object sender, Temp_StockRowChangeEvent e);
645
646 /// <summary>
647 ///Represents the strongly named DataTable class.
648 ///</summary>
649 [global::System.Serializable()]
650 [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
651 public partial class CategoryDataTable : global::System.Data.DataTable, global::System.Collections.IEnumerable {
652
653 private global::System.Data.DataColumn columnID;
654
655 private global::System.Data.DataColumn columnCategoryName;
656
657 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
658 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
659 public CategoryDataTable() {
660 this.TableName = "Category";
661 this.BeginInit();
662 this.InitClass();
663 this.EndInit();
664 }
665
666 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
667 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
668 internal CategoryDataTable(global::System.Data.DataTable table) {
669 this.TableName = table.TableName;
670 if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
671 this.CaseSensitive = table.CaseSensitive;
672 }
673 if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
674 this.Locale = table.Locale;
675 }
676 if ((table.Namespace != table.DataSet.Namespace)) {
677 this.Namespace = table.Namespace;
678 }
679 this.Prefix = table.Prefix;
680 this.MinimumCapacity = table.MinimumCapacity;
681 }
682
683 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
684 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
685 protected CategoryDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
686 base(info, context) {
687 this.InitVars();
688 }
689
690 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
691 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
692 public global::System.Data.DataColumn IDColumn {
693 get {
694 return this.columnID;
695 }
696 }
697
698 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
699 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
700 public global::System.Data.DataColumn CategoryNameColumn {
701 get {
702 return this.columnCategoryName;
703 }
704 }
705
706 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
707 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
708 [global::System.ComponentModel.Browsable(false)]
709 public int Count {
710 get {
711 return this.Rows.Count;
712 }
713 }
714
715 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
716 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
717 public CategoryRow this[int index] {
718 get {
719 return ((CategoryRow)(this.Rows[index]));
720 }
721 }
722
723 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
724 public event CategoryRowChangeEventHandler CategoryRowChanging;
725
726 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
727 public event CategoryRowChangeEventHandler CategoryRowChanged;
728
729 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
730 public event CategoryRowChangeEventHandler CategoryRowDeleting;
731
732 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
733 public event CategoryRowChangeEventHandler CategoryRowDeleted;
734
735 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
736 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
737 public void AddCategoryRow(CategoryRow row) {
738 this.Rows.Add(row);
739 }
740
741 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
742 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
743 public CategoryRow AddCategoryRow(string CategoryName) {
744 CategoryRow rowCategoryRow = ((CategoryRow)(this.NewRow()));
745 object[] columnValuesArray = new object[] {
746 null,
747 CategoryName};
748 rowCategoryRow.ItemArray = columnValuesArray;
749 this.Rows.Add(rowCategoryRow);
750 return rowCategoryRow;
751 }
752
753 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
754 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
755 public CategoryRow FindByID(int ID) {
756 return ((CategoryRow)(this.Rows.Find(new object[] {
757 ID})));
758 }
759
760 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
761 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
762 public virtual global::System.Collections.IEnumerator GetEnumerator() {
763 return this.Rows.GetEnumerator();
764 }
765
766 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
767 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
768 public override global::System.Data.DataTable Clone() {
769 CategoryDataTable cln = ((CategoryDataTable)(base.Clone()));
770 cln.InitVars();
771 return cln;
772 }
773
774 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
775 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
776 protected override global::System.Data.DataTable CreateInstance() {
777 return new CategoryDataTable();
778 }
779
780 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
781 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
782 internal void InitVars() {
783 this.columnID = base.Columns["ID"];
784 this.columnCategoryName = base.Columns["CategoryName"];
785 }
786
787 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
788 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
789 private void InitClass() {
790 this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
791 base.Columns.Add(this.columnID);
792 this.columnCategoryName = new global::System.Data.DataColumn("CategoryName", typeof(string), null, global::System.Data.MappingType.Element);
793 base.Columns.Add(this.columnCategoryName);
794 this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
795 this.columnID}, true));
796 this.columnID.AutoIncrement = true;
797 this.columnID.AutoIncrementSeed = -1;
798 this.columnID.AutoIncrementStep = -1;
799 this.columnID.AllowDBNull = false;
800 this.columnID.ReadOnly = true;
801 this.columnID.Unique = true;
802 this.columnCategoryName.AllowDBNull = false;
803 this.columnCategoryName.MaxLength = 250;
804 }
805
806 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
807 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
808 public CategoryRow NewCategoryRow() {
809 return ((CategoryRow)(this.NewRow()));
810 }
811
812 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
813 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
814 protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
815 return new CategoryRow(builder);
816 }
817
818 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
819 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
820 protected override global::System.Type GetRowType() {
821 return typeof(CategoryRow);
822 }
823
824 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
825 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
826 protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
827 base.OnRowChanged(e);
828 if ((this.CategoryRowChanged != null)) {
829 this.CategoryRowChanged(this, new CategoryRowChangeEvent(((CategoryRow)(e.Row)), e.Action));
830 }
831 }
832
833 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
834 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
835 protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
836 base.OnRowChanging(e);
837 if ((this.CategoryRowChanging != null)) {
838 this.CategoryRowChanging(this, new CategoryRowChangeEvent(((CategoryRow)(e.Row)), e.Action));
839 }
840 }
841
842 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
843 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
844 protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
845 base.OnRowDeleted(e);
846 if ((this.CategoryRowDeleted != null)) {
847 this.CategoryRowDeleted(this, new CategoryRowChangeEvent(((CategoryRow)(e.Row)), e.Action));
848 }
849 }
850
851 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
852 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
853 protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
854 base.OnRowDeleting(e);
855 if ((this.CategoryRowDeleting != null)) {
856 this.CategoryRowDeleting(this, new CategoryRowChangeEvent(((CategoryRow)(e.Row)), e.Action));
857 }
858 }
859
860 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
861 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
862 public void RemoveCategoryRow(CategoryRow row) {
863 this.Rows.Remove(row);
864 }
865
866 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
867 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
868 public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
869 global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
870 global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
871 POS_DBDataSet ds = new POS_DBDataSet();
872 global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
873 any1.Namespace = "http://www.w3.org/2001/XMLSchema";
874 any1.MinOccurs = new decimal(0);
875 any1.MaxOccurs = decimal.MaxValue;
876 any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
877 sequence.Items.Add(any1);
878 global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
879 any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
880 any2.MinOccurs = new decimal(1);
881 any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
882 sequence.Items.Add(any2);
883 global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
884 attribute1.Name = "namespace";
885 attribute1.FixedValue = ds.Namespace;
886 type.Attributes.Add(attribute1);
887 global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
888 attribute2.Name = "tableTypeName";
889 attribute2.FixedValue = "CategoryDataTable";
890 type.Attributes.Add(attribute2);
891 type.Particle = sequence;
892 global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
893 if (xs.Contains(dsSchema.TargetNamespace)) {
894 global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
895 global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
896 try {
897 global::System.Xml.Schema.XmlSchema schema = null;
898 dsSchema.Write(s1);
899 for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
900 schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
901 s2.SetLength(0);
902 schema.Write(s2);
903 if ((s1.Length == s2.Length)) {
904 s1.Position = 0;
905 s2.Position = 0;
906 for (; ((s1.Position != s1.Length)
907 && (s1.ReadByte() == s2.ReadByte())); ) {
908 ;
909 }
910 if ((s1.Position == s1.Length)) {
911 return type;
912 }
913 }
914 }
915 }
916 finally {
917 if ((s1 != null)) {
918 s1.Close();
919 }
920 if ((s2 != null)) {
921 s2.Close();
922 }
923 }
924 }
925 xs.Add(dsSchema);
926 return type;
927 }
928 }
929
930 /// <summary>
931 ///Represents the strongly named DataTable class.
932 ///</summary>
933 [global::System.Serializable()]
934 [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
935 public partial class CustomerDataTable : global::System.Data.DataTable, global::System.Collections.IEnumerable {
936
937 private global::System.Data.DataColumn columnCustomerId;
938
939 private global::System.Data.DataColumn columnCustomerName;
940
941 private global::System.Data.DataColumn columnAddress;
942
943 private global::System.Data.DataColumn columnCity;
944
945 private global::System.Data.DataColumn columnContactNo;
946
947 private global::System.Data.DataColumn columnContactNo1;
948
949 private global::System.Data.DataColumn columnEmail;
950
951 private global::System.Data.DataColumn columnNotes;
952
953 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
954 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
955 public CustomerDataTable() {
956 this.TableName = "Customer";
957 this.BeginInit();
958 this.InitClass();
959 this.EndInit();
960 }
961
962 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
963 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
964 internal CustomerDataTable(global::System.Data.DataTable table) {
965 this.TableName = table.TableName;
966 if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
967 this.CaseSensitive = table.CaseSensitive;
968 }
969 if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
970 this.Locale = table.Locale;
971 }
972 if ((table.Namespace != table.DataSet.Namespace)) {
973 this.Namespace = table.Namespace;
974 }
975 this.Prefix = table.Prefix;
976 this.MinimumCapacity = table.MinimumCapacity;
977 }
978
979 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
980 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
981 protected CustomerDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
982 base(info, context) {
983 this.InitVars();
984 }
985
986 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
987 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
988 public global::System.Data.DataColumn CustomerIdColumn {
989 get {
990 return this.columnCustomerId;
991 }
992 }
993
994 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
995 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
996 public global::System.Data.DataColumn CustomerNameColumn {
997 get {
998 return this.columnCustomerName;
999 }
1000 }
1001
1002 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1003 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1004 public global::System.Data.DataColumn AddressColumn {
1005 get {
1006 return this.columnAddress;
1007 }
1008 }
1009
1010 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1011 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1012 public global::System.Data.DataColumn CityColumn {
1013 get {
1014 return this.columnCity;
1015 }
1016 }
1017
1018 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1019 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1020 public global::System.Data.DataColumn ContactNoColumn {
1021 get {
1022 return this.columnContactNo;
1023 }
1024 }
1025
1026 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1027 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1028 public global::System.Data.DataColumn ContactNo1Column {
1029 get {
1030 return this.columnContactNo1;
1031 }
1032 }
1033
1034 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1035 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1036 public global::System.Data.DataColumn EmailColumn {
1037 get {
1038 return this.columnEmail;
1039 }
1040 }
1041
1042 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1043 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1044 public global::System.Data.DataColumn NotesColumn {
1045 get {
1046 return this.columnNotes;
1047 }
1048 }
1049
1050 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1051 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1052 [global::System.ComponentModel.Browsable(false)]
1053 public int Count {
1054 get {
1055 return this.Rows.Count;
1056 }
1057 }
1058
1059 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1060 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1061 public CustomerRow this[int index] {
1062 get {
1063 return ((CustomerRow)(this.Rows[index]));
1064 }
1065 }
1066
1067 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1068 public event CustomerRowChangeEventHandler CustomerRowChanging;
1069
1070 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1071 public event CustomerRowChangeEventHandler CustomerRowChanged;
1072
1073 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1074 public event CustomerRowChangeEventHandler CustomerRowDeleting;
1075
1076 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1077 public event CustomerRowChangeEventHandler CustomerRowDeleted;
1078
1079 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1080 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1081 public void AddCustomerRow(CustomerRow row) {
1082 this.Rows.Add(row);
1083 }
1084
1085 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1086 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1087 public CustomerRow AddCustomerRow(string CustomerId, string CustomerName, string Address, string City, string ContactNo, string ContactNo1, string Email, string Notes) {
1088 CustomerRow rowCustomerRow = ((CustomerRow)(this.NewRow()));
1089 object[] columnValuesArray = new object[] {
1090 CustomerId,
1091 CustomerName,
1092 Address,
1093 City,
1094 ContactNo,
1095 ContactNo1,
1096 Email,
1097 Notes};
1098 rowCustomerRow.ItemArray = columnValuesArray;
1099 this.Rows.Add(rowCustomerRow);
1100 return rowCustomerRow;
1101 }
1102
1103 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1104 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1105 public CustomerRow FindByCustomerId(string CustomerId) {
1106 return ((CustomerRow)(this.Rows.Find(new object[] {
1107 CustomerId})));
1108 }
1109
1110 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1111 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1112 public virtual global::System.Collections.IEnumerator GetEnumerator() {
1113 return this.Rows.GetEnumerator();
1114 }
1115
1116 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1117 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1118 public override global::System.Data.DataTable Clone() {
1119 CustomerDataTable cln = ((CustomerDataTable)(base.Clone()));
1120 cln.InitVars();
1121 return cln;
1122 }
1123
1124 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1125 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1126 protected override global::System.Data.DataTable CreateInstance() {
1127 return new CustomerDataTable();
1128 }
1129
1130 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1131 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1132 internal void InitVars() {
1133 this.columnCustomerId = base.Columns["CustomerId"];
1134 this.columnCustomerName = base.Columns["CustomerName"];
1135 this.columnAddress = base.Columns["Address"];
1136 this.columnCity = base.Columns["City"];
1137 this.columnContactNo = base.Columns["ContactNo"];
1138 this.columnContactNo1 = base.Columns["ContactNo1"];
1139 this.columnEmail = base.Columns["Email"];
1140 this.columnNotes = base.Columns["Notes"];
1141 }
1142
1143 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1144 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1145 private void InitClass() {
1146 this.columnCustomerId = new global::System.Data.DataColumn("CustomerId", typeof(string), null, global::System.Data.MappingType.Element);
1147 base.Columns.Add(this.columnCustomerId);
1148 this.columnCustomerName = new global::System.Data.DataColumn("CustomerName", typeof(string), null, global::System.Data.MappingType.Element);
1149 base.Columns.Add(this.columnCustomerName);
1150 this.columnAddress = new global::System.Data.DataColumn("Address", typeof(string), null, global::System.Data.MappingType.Element);
1151 base.Columns.Add(this.columnAddress);
1152 this.columnCity = new global::System.Data.DataColumn("City", typeof(string), null, global::System.Data.MappingType.Element);
1153 base.Columns.Add(this.columnCity);
1154 this.columnContactNo = new global::System.Data.DataColumn("ContactNo", typeof(string), null, global::System.Data.MappingType.Element);
1155 base.Columns.Add(this.columnContactNo);
1156 this.columnContactNo1 = new global::System.Data.DataColumn("ContactNo1", typeof(string), null, global::System.Data.MappingType.Element);
1157 base.Columns.Add(this.columnContactNo1);
1158 this.columnEmail = new global::System.Data.DataColumn("Email", typeof(string), null, global::System.Data.MappingType.Element);
1159 base.Columns.Add(this.columnEmail);
1160 this.columnNotes = new global::System.Data.DataColumn("Notes", typeof(string), null, global::System.Data.MappingType.Element);
1161 base.Columns.Add(this.columnNotes);
1162 this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
1163 this.columnCustomerId}, true));
1164 this.columnCustomerId.AllowDBNull = false;
1165 this.columnCustomerId.Unique = true;
1166 this.columnCustomerId.MaxLength = 10;
1167 this.columnCustomerName.AllowDBNull = false;
1168 this.columnCustomerName.MaxLength = 100;
1169 this.columnAddress.AllowDBNull = false;
1170 this.columnAddress.MaxLength = 2147483647;
1171 this.columnCity.AllowDBNull = false;
1172 this.columnCity.MaxLength = 250;
1173 this.columnContactNo.AllowDBNull = false;
1174 this.columnContactNo.MaxLength = 15;
1175 this.columnContactNo1.MaxLength = 15;
1176 this.columnEmail.MaxLength = 250;
1177 this.columnNotes.MaxLength = 2147483647;
1178 }
1179
1180 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1181 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1182 public CustomerRow NewCustomerRow() {
1183 return ((CustomerRow)(this.NewRow()));
1184 }
1185
1186 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1187 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1188 protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
1189 return new CustomerRow(builder);
1190 }
1191
1192 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1193 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1194 protected override global::System.Type GetRowType() {
1195 return typeof(CustomerRow);
1196 }
1197
1198 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1199 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1200 protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
1201 base.OnRowChanged(e);
1202 if ((this.CustomerRowChanged != null)) {
1203 this.CustomerRowChanged(this, new CustomerRowChangeEvent(((CustomerRow)(e.Row)), e.Action));
1204 }
1205 }
1206
1207 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1208 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1209 protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
1210 base.OnRowChanging(e);
1211 if ((this.CustomerRowChanging != null)) {
1212 this.CustomerRowChanging(this, new CustomerRowChangeEvent(((CustomerRow)(e.Row)), e.Action));
1213 }
1214 }
1215
1216 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1217 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1218 protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
1219 base.OnRowDeleted(e);
1220 if ((this.CustomerRowDeleted != null)) {
1221 this.CustomerRowDeleted(this, new CustomerRowChangeEvent(((CustomerRow)(e.Row)), e.Action));
1222 }
1223 }
1224
1225 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1226 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1227 protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
1228 base.OnRowDeleting(e);
1229 if ((this.CustomerRowDeleting != null)) {
1230 this.CustomerRowDeleting(this, new CustomerRowChangeEvent(((CustomerRow)(e.Row)), e.Action));
1231 }
1232 }
1233
1234 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1235 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1236 public void RemoveCustomerRow(CustomerRow row) {
1237 this.Rows.Remove(row);
1238 }
1239
1240 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1241 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1242 public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
1243 global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
1244 global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
1245 POS_DBDataSet ds = new POS_DBDataSet();
1246 global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
1247 any1.Namespace = "http://www.w3.org/2001/XMLSchema";
1248 any1.MinOccurs = new decimal(0);
1249 any1.MaxOccurs = decimal.MaxValue;
1250 any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
1251 sequence.Items.Add(any1);
1252 global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
1253 any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
1254 any2.MinOccurs = new decimal(1);
1255 any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
1256 sequence.Items.Add(any2);
1257 global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
1258 attribute1.Name = "namespace";
1259 attribute1.FixedValue = ds.Namespace;
1260 type.Attributes.Add(attribute1);
1261 global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
1262 attribute2.Name = "tableTypeName";
1263 attribute2.FixedValue = "CustomerDataTable";
1264 type.Attributes.Add(attribute2);
1265 type.Particle = sequence;
1266 global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
1267 if (xs.Contains(dsSchema.TargetNamespace)) {
1268 global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
1269 global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
1270 try {
1271 global::System.Xml.Schema.XmlSchema schema = null;
1272 dsSchema.Write(s1);
1273 for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
1274 schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
1275 s2.SetLength(0);
1276 schema.Write(s2);
1277 if ((s1.Length == s2.Length)) {
1278 s1.Position = 0;
1279 s2.Position = 0;
1280 for (; ((s1.Position != s1.Length)
1281 && (s1.ReadByte() == s2.ReadByte())); ) {
1282 ;
1283 }
1284 if ((s1.Position == s1.Length)) {
1285 return type;
1286 }
1287 }
1288 }
1289 }
1290 finally {
1291 if ((s1 != null)) {
1292 s1.Close();
1293 }
1294 if ((s2 != null)) {
1295 s2.Close();
1296 }
1297 }
1298 }
1299 xs.Add(dsSchema);
1300 return type;
1301 }
1302 }
1303
1304 /// <summary>
1305 ///Represents the strongly named DataTable class.
1306 ///</summary>
1307 [global::System.Serializable()]
1308 [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
1309 public partial class Invoice_InfoDataTable : global::System.Data.DataTable, global::System.Collections.IEnumerable {
1310
1311 private global::System.Data.DataColumn columnInvoiceNo;
1312
1313 private global::System.Data.DataColumn columnInvoiceDate;
1314
1315 private global::System.Data.DataColumn columnCustomerID;
1316
1317 private global::System.Data.DataColumn columnSubTotal;
1318
1319 private global::System.Data.DataColumn columnVATPer;
1320
1321 private global::System.Data.DataColumn columnVATAmount;
1322
1323 private global::System.Data.DataColumn columnDiscountPer;
1324
1325 private global::System.Data.DataColumn columnDiscountAmount;
1326
1327 private global::System.Data.DataColumn columnGrandTotal;
1328
1329 private global::System.Data.DataColumn columnTotalPayment;
1330
1331 private global::System.Data.DataColumn columnPaymentDue;
1332
1333 private global::System.Data.DataColumn columnPaymentType;
1334
1335 private global::System.Data.DataColumn columnStatus;
1336
1337 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1338 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1339 public Invoice_InfoDataTable() {
1340 this.TableName = "Invoice_Info";
1341 this.BeginInit();
1342 this.InitClass();
1343 this.EndInit();
1344 }
1345
1346 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1347 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1348 internal Invoice_InfoDataTable(global::System.Data.DataTable table) {
1349 this.TableName = table.TableName;
1350 if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
1351 this.CaseSensitive = table.CaseSensitive;
1352 }
1353 if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
1354 this.Locale = table.Locale;
1355 }
1356 if ((table.Namespace != table.DataSet.Namespace)) {
1357 this.Namespace = table.Namespace;
1358 }
1359 this.Prefix = table.Prefix;
1360 this.MinimumCapacity = table.MinimumCapacity;
1361 }
1362
1363 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1364 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1365 protected Invoice_InfoDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
1366 base(info, context) {
1367 this.InitVars();
1368 }
1369
1370 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1371 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1372 public global::System.Data.DataColumn InvoiceNoColumn {
1373 get {
1374 return this.columnInvoiceNo;
1375 }
1376 }
1377
1378 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1379 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1380 public global::System.Data.DataColumn InvoiceDateColumn {
1381 get {
1382 return this.columnInvoiceDate;
1383 }
1384 }
1385
1386 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1387 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1388 public global::System.Data.DataColumn CustomerIDColumn {
1389 get {
1390 return this.columnCustomerID;
1391 }
1392 }
1393
1394 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1395 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1396 public global::System.Data.DataColumn SubTotalColumn {
1397 get {
1398 return this.columnSubTotal;
1399 }
1400 }
1401
1402 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1403 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1404 public global::System.Data.DataColumn VATPerColumn {
1405 get {
1406 return this.columnVATPer;
1407 }
1408 }
1409
1410 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1411 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1412 public global::System.Data.DataColumn VATAmountColumn {
1413 get {
1414 return this.columnVATAmount;
1415 }
1416 }
1417
1418 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1419 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1420 public global::System.Data.DataColumn DiscountPerColumn {
1421 get {
1422 return this.columnDiscountPer;
1423 }
1424 }
1425
1426 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1427 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1428 public global::System.Data.DataColumn DiscountAmountColumn {
1429 get {
1430 return this.columnDiscountAmount;
1431 }
1432 }
1433
1434 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1435 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1436 public global::System.Data.DataColumn GrandTotalColumn {
1437 get {
1438 return this.columnGrandTotal;
1439 }
1440 }
1441
1442 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1443 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1444 public global::System.Data.DataColumn TotalPaymentColumn {
1445 get {
1446 return this.columnTotalPayment;
1447 }
1448 }
1449
1450 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1451 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1452 public global::System.Data.DataColumn PaymentDueColumn {
1453 get {
1454 return this.columnPaymentDue;
1455 }
1456 }
1457
1458 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1459 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1460 public global::System.Data.DataColumn PaymentTypeColumn {
1461 get {
1462 return this.columnPaymentType;
1463 }
1464 }
1465
1466 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1467 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1468 public global::System.Data.DataColumn StatusColumn {
1469 get {
1470 return this.columnStatus;
1471 }
1472 }
1473
1474 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1475 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1476 [global::System.ComponentModel.Browsable(false)]
1477 public int Count {
1478 get {
1479 return this.Rows.Count;
1480 }
1481 }
1482
1483 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1484 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1485 public Invoice_InfoRow this[int index] {
1486 get {
1487 return ((Invoice_InfoRow)(this.Rows[index]));
1488 }
1489 }
1490
1491 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1492 public event Invoice_InfoRowChangeEventHandler Invoice_InfoRowChanging;
1493
1494 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1495 public event Invoice_InfoRowChangeEventHandler Invoice_InfoRowChanged;
1496
1497 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1498 public event Invoice_InfoRowChangeEventHandler Invoice_InfoRowDeleting;
1499
1500 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1501 public event Invoice_InfoRowChangeEventHandler Invoice_InfoRowDeleted;
1502
1503 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1504 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1505 public void AddInvoice_InfoRow(Invoice_InfoRow row) {
1506 this.Rows.Add(row);
1507 }
1508
1509 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1510 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1511 public Invoice_InfoRow AddInvoice_InfoRow(string InvoiceNo, string InvoiceDate, CustomerRow parentCustomerRowByFK_Table_Customer, double SubTotal, double VATPer, double VATAmount, double DiscountPer, double DiscountAmount, double GrandTotal, double TotalPayment, double PaymentDue, string PaymentType, string Status) {
1512 Invoice_InfoRow rowInvoice_InfoRow = ((Invoice_InfoRow)(this.NewRow()));
1513 object[] columnValuesArray = new object[] {
1514 InvoiceNo,
1515 InvoiceDate,
1516 null,
1517 SubTotal,
1518 VATPer,
1519 VATAmount,
1520 DiscountPer,
1521 DiscountAmount,
1522 GrandTotal,
1523 TotalPayment,
1524 PaymentDue,
1525 PaymentType,
1526 Status};
1527 if ((parentCustomerRowByFK_Table_Customer != null)) {
1528 columnValuesArray[2] = parentCustomerRowByFK_Table_Customer[0];
1529 }
1530 rowInvoice_InfoRow.ItemArray = columnValuesArray;
1531 this.Rows.Add(rowInvoice_InfoRow);
1532 return rowInvoice_InfoRow;
1533 }
1534
1535 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1536 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1537 public Invoice_InfoRow FindByInvoiceNo(string InvoiceNo) {
1538 return ((Invoice_InfoRow)(this.Rows.Find(new object[] {
1539 InvoiceNo})));
1540 }
1541
1542 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1543 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1544 public virtual global::System.Collections.IEnumerator GetEnumerator() {
1545 return this.Rows.GetEnumerator();
1546 }
1547
1548 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1549 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1550 public override global::System.Data.DataTable Clone() {
1551 Invoice_InfoDataTable cln = ((Invoice_InfoDataTable)(base.Clone()));
1552 cln.InitVars();
1553 return cln;
1554 }
1555
1556 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1557 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1558 protected override global::System.Data.DataTable CreateInstance() {
1559 return new Invoice_InfoDataTable();
1560 }
1561
1562 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1563 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1564 internal void InitVars() {
1565 this.columnInvoiceNo = base.Columns["InvoiceNo"];
1566 this.columnInvoiceDate = base.Columns["InvoiceDate"];
1567 this.columnCustomerID = base.Columns["CustomerID"];
1568 this.columnSubTotal = base.Columns["SubTotal"];
1569 this.columnVATPer = base.Columns["VATPer"];
1570 this.columnVATAmount = base.Columns["VATAmount"];
1571 this.columnDiscountPer = base.Columns["DiscountPer"];
1572 this.columnDiscountAmount = base.Columns["DiscountAmount"];
1573 this.columnGrandTotal = base.Columns["GrandTotal"];
1574 this.columnTotalPayment = base.Columns["TotalPayment"];
1575 this.columnPaymentDue = base.Columns["PaymentDue"];
1576 this.columnPaymentType = base.Columns["PaymentType"];
1577 this.columnStatus = base.Columns["Status"];
1578 }
1579
1580 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1581 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1582 private void InitClass() {
1583 this.columnInvoiceNo = new global::System.Data.DataColumn("InvoiceNo", typeof(string), null, global::System.Data.MappingType.Element);
1584 base.Columns.Add(this.columnInvoiceNo);
1585 this.columnInvoiceDate = new global::System.Data.DataColumn("InvoiceDate", typeof(string), null, global::System.Data.MappingType.Element);
1586 base.Columns.Add(this.columnInvoiceDate);
1587 this.columnCustomerID = new global::System.Data.DataColumn("CustomerID", typeof(string), null, global::System.Data.MappingType.Element);
1588 base.Columns.Add(this.columnCustomerID);
1589 this.columnSubTotal = new global::System.Data.DataColumn("SubTotal", typeof(double), null, global::System.Data.MappingType.Element);
1590 base.Columns.Add(this.columnSubTotal);
1591 this.columnVATPer = new global::System.Data.DataColumn("VATPer", typeof(double), null, global::System.Data.MappingType.Element);
1592 base.Columns.Add(this.columnVATPer);
1593 this.columnVATAmount = new global::System.Data.DataColumn("VATAmount", typeof(double), null, global::System.Data.MappingType.Element);
1594 base.Columns.Add(this.columnVATAmount);
1595 this.columnDiscountPer = new global::System.Data.DataColumn("DiscountPer", typeof(double), null, global::System.Data.MappingType.Element);
1596 base.Columns.Add(this.columnDiscountPer);
1597 this.columnDiscountAmount = new global::System.Data.DataColumn("DiscountAmount", typeof(double), null, global::System.Data.MappingType.Element);
1598 base.Columns.Add(this.columnDiscountAmount);
1599 this.columnGrandTotal = new global::System.Data.DataColumn("GrandTotal", typeof(double), null, global::System.Data.MappingType.Element);
1600 base.Columns.Add(this.columnGrandTotal);
1601 this.columnTotalPayment = new global::System.Data.DataColumn("TotalPayment", typeof(double), null, global::System.Data.MappingType.Element);
1602 base.Columns.Add(this.columnTotalPayment);
1603 this.columnPaymentDue = new global::System.Data.DataColumn("PaymentDue", typeof(double), null, global::System.Data.MappingType.Element);
1604 base.Columns.Add(this.columnPaymentDue);
1605 this.columnPaymentType = new global::System.Data.DataColumn("PaymentType", typeof(string), null, global::System.Data.MappingType.Element);
1606 base.Columns.Add(this.columnPaymentType);
1607 this.columnStatus = new global::System.Data.DataColumn("Status", typeof(string), null, global::System.Data.MappingType.Element);
1608 base.Columns.Add(this.columnStatus);
1609 this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
1610 this.columnInvoiceNo}, true));
1611 this.columnInvoiceNo.AllowDBNull = false;
1612 this.columnInvoiceNo.Unique = true;
1613 this.columnInvoiceNo.MaxLength = 10;
1614 this.columnInvoiceDate.AllowDBNull = false;
1615 this.columnInvoiceDate.MaxLength = 30;
1616 this.columnCustomerID.AllowDBNull = false;
1617 this.columnCustomerID.MaxLength = 10;
1618 this.columnSubTotal.AllowDBNull = false;
1619 this.columnVATPer.AllowDBNull = false;
1620 this.columnVATAmount.AllowDBNull = false;
1621 this.columnDiscountPer.AllowDBNull = false;
1622 this.columnDiscountAmount.AllowDBNull = false;
1623 this.columnGrandTotal.AllowDBNull = false;
1624 this.columnTotalPayment.AllowDBNull = false;
1625 this.columnPaymentDue.AllowDBNull = false;
1626 this.columnPaymentType.AllowDBNull = false;
1627 this.columnPaymentType.MaxLength = 100;
1628 this.columnStatus.AllowDBNull = false;
1629 this.columnStatus.MaxLength = 100;
1630 }
1631
1632 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1633 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1634 public Invoice_InfoRow NewInvoice_InfoRow() {
1635 return ((Invoice_InfoRow)(this.NewRow()));
1636 }
1637
1638 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1639 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1640 protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
1641 return new Invoice_InfoRow(builder);
1642 }
1643
1644 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1645 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1646 protected override global::System.Type GetRowType() {
1647 return typeof(Invoice_InfoRow);
1648 }
1649
1650 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1651 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1652 protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
1653 base.OnRowChanged(e);
1654 if ((this.Invoice_InfoRowChanged != null)) {
1655 this.Invoice_InfoRowChanged(this, new Invoice_InfoRowChangeEvent(((Invoice_InfoRow)(e.Row)), e.Action));
1656 }
1657 }
1658
1659 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1660 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1661 protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
1662 base.OnRowChanging(e);
1663 if ((this.Invoice_InfoRowChanging != null)) {
1664 this.Invoice_InfoRowChanging(this, new Invoice_InfoRowChangeEvent(((Invoice_InfoRow)(e.Row)), e.Action));
1665 }
1666 }
1667
1668 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1669 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1670 protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
1671 base.OnRowDeleted(e);
1672 if ((this.Invoice_InfoRowDeleted != null)) {
1673 this.Invoice_InfoRowDeleted(this, new Invoice_InfoRowChangeEvent(((Invoice_InfoRow)(e.Row)), e.Action));
1674 }
1675 }
1676
1677 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1678 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1679 protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
1680 base.OnRowDeleting(e);
1681 if ((this.Invoice_InfoRowDeleting != null)) {
1682 this.Invoice_InfoRowDeleting(this, new Invoice_InfoRowChangeEvent(((Invoice_InfoRow)(e.Row)), e.Action));
1683 }
1684 }
1685
1686 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1687 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1688 public void RemoveInvoice_InfoRow(Invoice_InfoRow row) {
1689 this.Rows.Remove(row);
1690 }
1691
1692 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1693 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1694 public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
1695 global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
1696 global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
1697 POS_DBDataSet ds = new POS_DBDataSet();
1698 global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
1699 any1.Namespace = "http://www.w3.org/2001/XMLSchema";
1700 any1.MinOccurs = new decimal(0);
1701 any1.MaxOccurs = decimal.MaxValue;
1702 any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
1703 sequence.Items.Add(any1);
1704 global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
1705 any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
1706 any2.MinOccurs = new decimal(1);
1707 any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
1708 sequence.Items.Add(any2);
1709 global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
1710 attribute1.Name = "namespace";
1711 attribute1.FixedValue = ds.Namespace;
1712 type.Attributes.Add(attribute1);
1713 global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
1714 attribute2.Name = "tableTypeName";
1715 attribute2.FixedValue = "Invoice_InfoDataTable";
1716 type.Attributes.Add(attribute2);
1717 type.Particle = sequence;
1718 global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
1719 if (xs.Contains(dsSchema.TargetNamespace)) {
1720 global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
1721 global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
1722 try {
1723 global::System.Xml.Schema.XmlSchema schema = null;
1724 dsSchema.Write(s1);
1725 for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
1726 schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
1727 s2.SetLength(0);
1728 schema.Write(s2);
1729 if ((s1.Length == s2.Length)) {
1730 s1.Position = 0;
1731 s2.Position = 0;
1732 for (; ((s1.Position != s1.Length)
1733 && (s1.ReadByte() == s2.ReadByte())); ) {
1734 ;
1735 }
1736 if ((s1.Position == s1.Length)) {
1737 return type;
1738 }
1739 }
1740 }
1741 }
1742 finally {
1743 if ((s1 != null)) {
1744 s1.Close();
1745 }
1746 if ((s2 != null)) {
1747 s2.Close();
1748 }
1749 }
1750 }
1751 xs.Add(dsSchema);
1752 return type;
1753 }
1754 }
1755
1756 /// <summary>
1757 ///Represents the strongly named DataTable class.
1758 ///</summary>
1759 [global::System.Serializable()]
1760 [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
1761 public partial class ProductDataTable : global::System.Data.DataTable, global::System.Collections.IEnumerable {
1762
1763 private global::System.Data.DataColumn columnProductID;
1764
1765 private global::System.Data.DataColumn columnProductName;
1766
1767 private global::System.Data.DataColumn columnCategoryID;
1768
1769 private global::System.Data.DataColumn columnSubCategoryID;
1770
1771 private global::System.Data.DataColumn columnFeatures;
1772
1773 private global::System.Data.DataColumn columnPrice;
1774
1775 private global::System.Data.DataColumn columnImage;
1776
1777 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1778 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1779 public ProductDataTable() {
1780 this.TableName = "Product";
1781 this.BeginInit();
1782 this.InitClass();
1783 this.EndInit();
1784 }
1785
1786 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1787 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1788 internal ProductDataTable(global::System.Data.DataTable table) {
1789 this.TableName = table.TableName;
1790 if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
1791 this.CaseSensitive = table.CaseSensitive;
1792 }
1793 if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
1794 this.Locale = table.Locale;
1795 }
1796 if ((table.Namespace != table.DataSet.Namespace)) {
1797 this.Namespace = table.Namespace;
1798 }
1799 this.Prefix = table.Prefix;
1800 this.MinimumCapacity = table.MinimumCapacity;
1801 }
1802
1803 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1804 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1805 protected ProductDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
1806 base(info, context) {
1807 this.InitVars();
1808 }
1809
1810 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1811 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1812 public global::System.Data.DataColumn ProductIDColumn {
1813 get {
1814 return this.columnProductID;
1815 }
1816 }
1817
1818 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1819 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1820 public global::System.Data.DataColumn ProductNameColumn {
1821 get {
1822 return this.columnProductName;
1823 }
1824 }
1825
1826 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1827 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1828 public global::System.Data.DataColumn CategoryIDColumn {
1829 get {
1830 return this.columnCategoryID;
1831 }
1832 }
1833
1834 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1835 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1836 public global::System.Data.DataColumn SubCategoryIDColumn {
1837 get {
1838 return this.columnSubCategoryID;
1839 }
1840 }
1841
1842 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1843 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1844 public global::System.Data.DataColumn FeaturesColumn {
1845 get {
1846 return this.columnFeatures;
1847 }
1848 }
1849
1850 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1851 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1852 public global::System.Data.DataColumn PriceColumn {
1853 get {
1854 return this.columnPrice;
1855 }
1856 }
1857
1858 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1859 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1860 public global::System.Data.DataColumn ImageColumn {
1861 get {
1862 return this.columnImage;
1863 }
1864 }
1865
1866 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1867 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1868 [global::System.ComponentModel.Browsable(false)]
1869 public int Count {
1870 get {
1871 return this.Rows.Count;
1872 }
1873 }
1874
1875 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1876 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1877 public ProductRow this[int index] {
1878 get {
1879 return ((ProductRow)(this.Rows[index]));
1880 }
1881 }
1882
1883 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1884 public event ProductRowChangeEventHandler ProductRowChanging;
1885
1886 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1887 public event ProductRowChangeEventHandler ProductRowChanged;
1888
1889 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1890 public event ProductRowChangeEventHandler ProductRowDeleting;
1891
1892 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1893 public event ProductRowChangeEventHandler ProductRowDeleted;
1894
1895 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1896 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1897 public void AddProductRow(ProductRow row) {
1898 this.Rows.Add(row);
1899 }
1900
1901 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1902 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1903 public ProductRow AddProductRow(string ProductID, string ProductName, CategoryRow parentCategoryRowByFK_Product_ToCategory, SubCategoryRow parentSubCategoryRowByFK_Product_ToSubCategory, string Features, double Price, byte[] Image) {
1904 ProductRow rowProductRow = ((ProductRow)(this.NewRow()));
1905 object[] columnValuesArray = new object[] {
1906 ProductID,
1907 ProductName,
1908 null,
1909 null,
1910 Features,
1911 Price,
1912 Image};
1913 if ((parentCategoryRowByFK_Product_ToCategory != null)) {
1914 columnValuesArray[2] = parentCategoryRowByFK_Product_ToCategory[0];
1915 }
1916 if ((parentSubCategoryRowByFK_Product_ToSubCategory != null)) {
1917 columnValuesArray[3] = parentSubCategoryRowByFK_Product_ToSubCategory[0];
1918 }
1919 rowProductRow.ItemArray = columnValuesArray;
1920 this.Rows.Add(rowProductRow);
1921 return rowProductRow;
1922 }
1923
1924 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1925 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1926 public ProductRow FindByProductID(string ProductID) {
1927 return ((ProductRow)(this.Rows.Find(new object[] {
1928 ProductID})));
1929 }
1930
1931 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1932 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1933 public virtual global::System.Collections.IEnumerator GetEnumerator() {
1934 return this.Rows.GetEnumerator();
1935 }
1936
1937 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1938 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1939 public override global::System.Data.DataTable Clone() {
1940 ProductDataTable cln = ((ProductDataTable)(base.Clone()));
1941 cln.InitVars();
1942 return cln;
1943 }
1944
1945 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1946 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1947 protected override global::System.Data.DataTable CreateInstance() {
1948 return new ProductDataTable();
1949 }
1950
1951 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1952 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1953 internal void InitVars() {
1954 this.columnProductID = base.Columns["ProductID"];
1955 this.columnProductName = base.Columns["ProductName"];
1956 this.columnCategoryID = base.Columns["CategoryID"];
1957 this.columnSubCategoryID = base.Columns["SubCategoryID"];
1958 this.columnFeatures = base.Columns["Features"];
1959 this.columnPrice = base.Columns["Price"];
1960 this.columnImage = base.Columns["Image"];
1961 }
1962
1963 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1964 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1965 private void InitClass() {
1966 this.columnProductID = new global::System.Data.DataColumn("ProductID", typeof(string), null, global::System.Data.MappingType.Element);
1967 base.Columns.Add(this.columnProductID);
1968 this.columnProductName = new global::System.Data.DataColumn("ProductName", typeof(string), null, global::System.Data.MappingType.Element);
1969 base.Columns.Add(this.columnProductName);
1970 this.columnCategoryID = new global::System.Data.DataColumn("CategoryID", typeof(int), null, global::System.Data.MappingType.Element);
1971 base.Columns.Add(this.columnCategoryID);
1972 this.columnSubCategoryID = new global::System.Data.DataColumn("SubCategoryID", typeof(int), null, global::System.Data.MappingType.Element);
1973 base.Columns.Add(this.columnSubCategoryID);
1974 this.columnFeatures = new global::System.Data.DataColumn("Features", typeof(string), null, global::System.Data.MappingType.Element);
1975 base.Columns.Add(this.columnFeatures);
1976 this.columnPrice = new global::System.Data.DataColumn("Price", typeof(double), null, global::System.Data.MappingType.Element);
1977 base.Columns.Add(this.columnPrice);
1978 this.columnImage = new global::System.Data.DataColumn("Image", typeof(byte[]), null, global::System.Data.MappingType.Element);
1979 base.Columns.Add(this.columnImage);
1980 this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
1981 this.columnProductID}, true));
1982 this.columnProductID.AllowDBNull = false;
1983 this.columnProductID.Unique = true;
1984 this.columnProductID.MaxLength = 10;
1985 this.columnProductName.AllowDBNull = false;
1986 this.columnProductName.MaxLength = 2147483647;
1987 this.columnCategoryID.AllowDBNull = false;
1988 this.columnSubCategoryID.AllowDBNull = false;
1989 this.columnFeatures.MaxLength = 2147483647;
1990 this.columnPrice.AllowDBNull = false;
1991 this.columnImage.AllowDBNull = false;
1992 }
1993
1994 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1995 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1996 public ProductRow NewProductRow() {
1997 return ((ProductRow)(this.NewRow()));
1998 }
1999
2000 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2001 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2002 protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
2003 return new ProductRow(builder);
2004 }
2005
2006 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2007 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2008 protected override global::System.Type GetRowType() {
2009 return typeof(ProductRow);
2010 }
2011
2012 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2013 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2014 protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
2015 base.OnRowChanged(e);
2016 if ((this.ProductRowChanged != null)) {
2017 this.ProductRowChanged(this, new ProductRowChangeEvent(((ProductRow)(e.Row)), e.Action));
2018 }
2019 }
2020
2021 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2022 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2023 protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
2024 base.OnRowChanging(e);
2025 if ((this.ProductRowChanging != null)) {
2026 this.ProductRowChanging(this, new ProductRowChangeEvent(((ProductRow)(e.Row)), e.Action));
2027 }
2028 }
2029
2030 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2031 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2032 protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
2033 base.OnRowDeleted(e);
2034 if ((this.ProductRowDeleted != null)) {
2035 this.ProductRowDeleted(this, new ProductRowChangeEvent(((ProductRow)(e.Row)), e.Action));
2036 }
2037 }
2038
2039 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2040 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2041 protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
2042 base.OnRowDeleting(e);
2043 if ((this.ProductRowDeleting != null)) {
2044 this.ProductRowDeleting(this, new ProductRowChangeEvent(((ProductRow)(e.Row)), e.Action));
2045 }
2046 }
2047
2048 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2049 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2050 public void RemoveProductRow(ProductRow row) {
2051 this.Rows.Remove(row);
2052 }
2053
2054 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2055 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2056 public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
2057 global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
2058 global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
2059 POS_DBDataSet ds = new POS_DBDataSet();
2060 global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
2061 any1.Namespace = "http://www.w3.org/2001/XMLSchema";
2062 any1.MinOccurs = new decimal(0);
2063 any1.MaxOccurs = decimal.MaxValue;
2064 any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
2065 sequence.Items.Add(any1);
2066 global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
2067 any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
2068 any2.MinOccurs = new decimal(1);
2069 any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
2070 sequence.Items.Add(any2);
2071 global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
2072 attribute1.Name = "namespace";
2073 attribute1.FixedValue = ds.Namespace;
2074 type.Attributes.Add(attribute1);
2075 global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
2076 attribute2.Name = "tableTypeName";
2077 attribute2.FixedValue = "ProductDataTable";
2078 type.Attributes.Add(attribute2);
2079 type.Particle = sequence;
2080 global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
2081 if (xs.Contains(dsSchema.TargetNamespace)) {
2082 global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
2083 global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
2084 try {
2085 global::System.Xml.Schema.XmlSchema schema = null;
2086 dsSchema.Write(s1);
2087 for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
2088 schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
2089 s2.SetLength(0);
2090 schema.Write(s2);
2091 if ((s1.Length == s2.Length)) {
2092 s1.Position = 0;
2093 s2.Position = 0;
2094 for (; ((s1.Position != s1.Length)
2095 && (s1.ReadByte() == s2.ReadByte())); ) {
2096 ;
2097 }
2098 if ((s1.Position == s1.Length)) {
2099 return type;
2100 }
2101 }
2102 }
2103 }
2104 finally {
2105 if ((s1 != null)) {
2106 s1.Close();
2107 }
2108 if ((s2 != null)) {
2109 s2.Close();
2110 }
2111 }
2112 }
2113 xs.Add(dsSchema);
2114 return type;
2115 }
2116 }
2117
2118 /// <summary>
2119 ///Represents the strongly named DataTable class.
2120 ///</summary>
2121 [global::System.Serializable()]
2122 [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
2123 public partial class ProductSoldDataTable : global::System.Data.DataTable, global::System.Collections.IEnumerable {
2124
2125 private global::System.Data.DataColumn columnId;
2126
2127 private global::System.Data.DataColumn columnInvoiceNo;
2128
2129 private global::System.Data.DataColumn columnProductID;
2130
2131 private global::System.Data.DataColumn columnProductName;
2132
2133 private global::System.Data.DataColumn columnPrice;
2134
2135 private global::System.Data.DataColumn columnQuantity;
2136
2137 private global::System.Data.DataColumn columnTotalAmount;
2138
2139 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2140 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2141 public ProductSoldDataTable() {
2142 this.TableName = "ProductSold";
2143 this.BeginInit();
2144 this.InitClass();
2145 this.EndInit();
2146 }
2147
2148 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2149 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2150 internal ProductSoldDataTable(global::System.Data.DataTable table) {
2151 this.TableName = table.TableName;
2152 if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
2153 this.CaseSensitive = table.CaseSensitive;
2154 }
2155 if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
2156 this.Locale = table.Locale;
2157 }
2158 if ((table.Namespace != table.DataSet.Namespace)) {
2159 this.Namespace = table.Namespace;
2160 }
2161 this.Prefix = table.Prefix;
2162 this.MinimumCapacity = table.MinimumCapacity;
2163 }
2164
2165 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2166 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2167 protected ProductSoldDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
2168 base(info, context) {
2169 this.InitVars();
2170 }
2171
2172 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2173 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2174 public global::System.Data.DataColumn IdColumn {
2175 get {
2176 return this.columnId;
2177 }
2178 }
2179
2180 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2181 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2182 public global::System.Data.DataColumn InvoiceNoColumn {
2183 get {
2184 return this.columnInvoiceNo;
2185 }
2186 }
2187
2188 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2189 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2190 public global::System.Data.DataColumn ProductIDColumn {
2191 get {
2192 return this.columnProductID;
2193 }
2194 }
2195
2196 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2197 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2198 public global::System.Data.DataColumn ProductNameColumn {
2199 get {
2200 return this.columnProductName;
2201 }
2202 }
2203
2204 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2205 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2206 public global::System.Data.DataColumn PriceColumn {
2207 get {
2208 return this.columnPrice;
2209 }
2210 }
2211
2212 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2213 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2214 public global::System.Data.DataColumn QuantityColumn {
2215 get {
2216 return this.columnQuantity;
2217 }
2218 }
2219
2220 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2221 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2222 public global::System.Data.DataColumn TotalAmountColumn {
2223 get {
2224 return this.columnTotalAmount;
2225 }
2226 }
2227
2228 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2229 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2230 [global::System.ComponentModel.Browsable(false)]
2231 public int Count {
2232 get {
2233 return this.Rows.Count;
2234 }
2235 }
2236
2237 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2238 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2239 public ProductSoldRow this[int index] {
2240 get {
2241 return ((ProductSoldRow)(this.Rows[index]));
2242 }
2243 }
2244
2245 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2246 public event ProductSoldRowChangeEventHandler ProductSoldRowChanging;
2247
2248 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2249 public event ProductSoldRowChangeEventHandler ProductSoldRowChanged;
2250
2251 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2252 public event ProductSoldRowChangeEventHandler ProductSoldRowDeleting;
2253
2254 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2255 public event ProductSoldRowChangeEventHandler ProductSoldRowDeleted;
2256
2257 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2258 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2259 public void AddProductSoldRow(ProductSoldRow row) {
2260 this.Rows.Add(row);
2261 }
2262
2263 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2264 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2265 public ProductSoldRow AddProductSoldRow(Invoice_InfoRow parentInvoice_InfoRowByFK_Table_InvoiceInfo, ProductRow parentProductRowByFK_ProductSold_Product, string ProductName, double Price, int Quantity, double TotalAmount) {
2266 ProductSoldRow rowProductSoldRow = ((ProductSoldRow)(this.NewRow()));
2267 object[] columnValuesArray = new object[] {
2268 null,
2269 null,
2270 null,
2271 ProductName,
2272 Price,
2273 Quantity,
2274 TotalAmount};
2275 if ((parentInvoice_InfoRowByFK_Table_InvoiceInfo != null)) {
2276 columnValuesArray[1] = parentInvoice_InfoRowByFK_Table_InvoiceInfo[0];
2277 }
2278 if ((parentProductRowByFK_ProductSold_Product != null)) {
2279 columnValuesArray[2] = parentProductRowByFK_ProductSold_Product[0];
2280 }
2281 rowProductSoldRow.ItemArray = columnValuesArray;
2282 this.Rows.Add(rowProductSoldRow);
2283 return rowProductSoldRow;
2284 }
2285
2286 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2287 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2288 public ProductSoldRow FindById(int Id) {
2289 return ((ProductSoldRow)(this.Rows.Find(new object[] {
2290 Id})));
2291 }
2292
2293 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2294 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2295 public virtual global::System.Collections.IEnumerator GetEnumerator() {
2296 return this.Rows.GetEnumerator();
2297 }
2298
2299 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2300 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2301 public override global::System.Data.DataTable Clone() {
2302 ProductSoldDataTable cln = ((ProductSoldDataTable)(base.Clone()));
2303 cln.InitVars();
2304 return cln;
2305 }
2306
2307 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2308 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2309 protected override global::System.Data.DataTable CreateInstance() {
2310 return new ProductSoldDataTable();
2311 }
2312
2313 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2314 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2315 internal void InitVars() {
2316 this.columnId = base.Columns["Id"];
2317 this.columnInvoiceNo = base.Columns["InvoiceNo"];
2318 this.columnProductID = base.Columns["ProductID"];
2319 this.columnProductName = base.Columns["ProductName"];
2320 this.columnPrice = base.Columns["Price"];
2321 this.columnQuantity = base.Columns["Quantity"];
2322 this.columnTotalAmount = base.Columns["TotalAmount"];
2323 }
2324
2325 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2326 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2327 private void InitClass() {
2328 this.columnId = new global::System.Data.DataColumn("Id", typeof(int), null, global::System.Data.MappingType.Element);
2329 base.Columns.Add(this.columnId);
2330 this.columnInvoiceNo = new global::System.Data.DataColumn("InvoiceNo", typeof(string), null, global::System.Data.MappingType.Element);
2331 base.Columns.Add(this.columnInvoiceNo);
2332 this.columnProductID = new global::System.Data.DataColumn("ProductID", typeof(string), null, global::System.Data.MappingType.Element);
2333 base.Columns.Add(this.columnProductID);
2334 this.columnProductName = new global::System.Data.DataColumn("ProductName", typeof(string), null, global::System.Data.MappingType.Element);
2335 base.Columns.Add(this.columnProductName);
2336 this.columnPrice = new global::System.Data.DataColumn("Price", typeof(double), null, global::System.Data.MappingType.Element);
2337 base.Columns.Add(this.columnPrice);
2338 this.columnQuantity = new global::System.Data.DataColumn("Quantity", typeof(int), null, global::System.Data.MappingType.Element);
2339 base.Columns.Add(this.columnQuantity);
2340 this.columnTotalAmount = new global::System.Data.DataColumn("TotalAmount", typeof(double), null, global::System.Data.MappingType.Element);
2341 base.Columns.Add(this.columnTotalAmount);
2342 this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
2343 this.columnId}, true));
2344 this.columnId.AutoIncrement = true;
2345 this.columnId.AutoIncrementSeed = -1;
2346 this.columnId.AutoIncrementStep = -1;
2347 this.columnId.AllowDBNull = false;
2348 this.columnId.ReadOnly = true;
2349 this.columnId.Unique = true;
2350 this.columnInvoiceNo.AllowDBNull = false;
2351 this.columnInvoiceNo.MaxLength = 10;
2352 this.columnProductID.AllowDBNull = false;
2353 this.columnProductID.MaxLength = 10;
2354 this.columnProductName.AllowDBNull = false;
2355 this.columnProductName.MaxLength = 250;
2356 this.columnPrice.AllowDBNull = false;
2357 this.columnQuantity.AllowDBNull = false;
2358 this.columnTotalAmount.AllowDBNull = false;
2359 }
2360
2361 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2362 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2363 public ProductSoldRow NewProductSoldRow() {
2364 return ((ProductSoldRow)(this.NewRow()));
2365 }
2366
2367 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2368 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2369 protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
2370 return new ProductSoldRow(builder);
2371 }
2372
2373 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2374 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2375 protected override global::System.Type GetRowType() {
2376 return typeof(ProductSoldRow);
2377 }
2378
2379 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2380 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2381 protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
2382 base.OnRowChanged(e);
2383 if ((this.ProductSoldRowChanged != null)) {
2384 this.ProductSoldRowChanged(this, new ProductSoldRowChangeEvent(((ProductSoldRow)(e.Row)), e.Action));
2385 }
2386 }
2387
2388 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2389 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2390 protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
2391 base.OnRowChanging(e);
2392 if ((this.ProductSoldRowChanging != null)) {
2393 this.ProductSoldRowChanging(this, new ProductSoldRowChangeEvent(((ProductSoldRow)(e.Row)), e.Action));
2394 }
2395 }
2396
2397 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2398 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2399 protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
2400 base.OnRowDeleted(e);
2401 if ((this.ProductSoldRowDeleted != null)) {
2402 this.ProductSoldRowDeleted(this, new ProductSoldRowChangeEvent(((ProductSoldRow)(e.Row)), e.Action));
2403 }
2404 }
2405
2406 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2407 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2408 protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
2409 base.OnRowDeleting(e);
2410 if ((this.ProductSoldRowDeleting != null)) {
2411 this.ProductSoldRowDeleting(this, new ProductSoldRowChangeEvent(((ProductSoldRow)(e.Row)), e.Action));
2412 }
2413 }
2414
2415 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2416 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2417 public void RemoveProductSoldRow(ProductSoldRow row) {
2418 this.Rows.Remove(row);
2419 }
2420
2421 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2422 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2423 public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
2424 global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
2425 global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
2426 POS_DBDataSet ds = new POS_DBDataSet();
2427 global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
2428 any1.Namespace = "http://www.w3.org/2001/XMLSchema";
2429 any1.MinOccurs = new decimal(0);
2430 any1.MaxOccurs = decimal.MaxValue;
2431 any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
2432 sequence.Items.Add(any1);
2433 global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
2434 any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
2435 any2.MinOccurs = new decimal(1);
2436 any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
2437 sequence.Items.Add(any2);
2438 global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
2439 attribute1.Name = "namespace";
2440 attribute1.FixedValue = ds.Namespace;
2441 type.Attributes.Add(attribute1);
2442 global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
2443 attribute2.Name = "tableTypeName";
2444 attribute2.FixedValue = "ProductSoldDataTable";
2445 type.Attributes.Add(attribute2);
2446 type.Particle = sequence;
2447 global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
2448 if (xs.Contains(dsSchema.TargetNamespace)) {
2449 global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
2450 global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
2451 try {
2452 global::System.Xml.Schema.XmlSchema schema = null;
2453 dsSchema.Write(s1);
2454 for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
2455 schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
2456 s2.SetLength(0);
2457 schema.Write(s2);
2458 if ((s1.Length == s2.Length)) {
2459 s1.Position = 0;
2460 s2.Position = 0;
2461 for (; ((s1.Position != s1.Length)
2462 && (s1.ReadByte() == s2.ReadByte())); ) {
2463 ;
2464 }
2465 if ((s1.Position == s1.Length)) {
2466 return type;
2467 }
2468 }
2469 }
2470 }
2471 finally {
2472 if ((s1 != null)) {
2473 s1.Close();
2474 }
2475 if ((s2 != null)) {
2476 s2.Close();
2477 }
2478 }
2479 }
2480 xs.Add(dsSchema);
2481 return type;
2482 }
2483 }
2484
2485 /// <summary>
2486 ///Represents the strongly named DataTable class.
2487 ///</summary>
2488 [global::System.Serializable()]
2489 [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
2490 public partial class RegistrationDataTable : global::System.Data.DataTable, global::System.Collections.IEnumerable {
2491
2492 private global::System.Data.DataColumn columnUserName;
2493
2494 private global::System.Data.DataColumn columnPassword;
2495
2496 private global::System.Data.DataColumn columnName;
2497
2498 private global::System.Data.DataColumn columnContactNo;
2499
2500 private global::System.Data.DataColumn columnEmail;
2501
2502 private global::System.Data.DataColumn columnJoiningDate;
2503
2504 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2505 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2506 public RegistrationDataTable() {
2507 this.TableName = "Registration";
2508 this.BeginInit();
2509 this.InitClass();
2510 this.EndInit();
2511 }
2512
2513 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2514 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2515 internal RegistrationDataTable(global::System.Data.DataTable table) {
2516 this.TableName = table.TableName;
2517 if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
2518 this.CaseSensitive = table.CaseSensitive;
2519 }
2520 if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
2521 this.Locale = table.Locale;
2522 }
2523 if ((table.Namespace != table.DataSet.Namespace)) {
2524 this.Namespace = table.Namespace;
2525 }
2526 this.Prefix = table.Prefix;
2527 this.MinimumCapacity = table.MinimumCapacity;
2528 }
2529
2530 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2531 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2532 protected RegistrationDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
2533 base(info, context) {
2534 this.InitVars();
2535 }
2536
2537 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2538 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2539 public global::System.Data.DataColumn UserNameColumn {
2540 get {
2541 return this.columnUserName;
2542 }
2543 }
2544
2545 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2546 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2547 public global::System.Data.DataColumn PasswordColumn {
2548 get {
2549 return this.columnPassword;
2550 }
2551 }
2552
2553 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2554 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2555 public global::System.Data.DataColumn NameColumn {
2556 get {
2557 return this.columnName;
2558 }
2559 }
2560
2561 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2562 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2563 public global::System.Data.DataColumn ContactNoColumn {
2564 get {
2565 return this.columnContactNo;
2566 }
2567 }
2568
2569 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2570 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2571 public global::System.Data.DataColumn EmailColumn {
2572 get {
2573 return this.columnEmail;
2574 }
2575 }
2576
2577 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2578 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2579 public global::System.Data.DataColumn JoiningDateColumn {
2580 get {
2581 return this.columnJoiningDate;
2582 }
2583 }
2584
2585 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2586 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2587 [global::System.ComponentModel.Browsable(false)]
2588 public int Count {
2589 get {
2590 return this.Rows.Count;
2591 }
2592 }
2593
2594 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2595 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2596 public RegistrationRow this[int index] {
2597 get {
2598 return ((RegistrationRow)(this.Rows[index]));
2599 }
2600 }
2601
2602 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2603 public event RegistrationRowChangeEventHandler RegistrationRowChanging;
2604
2605 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2606 public event RegistrationRowChangeEventHandler RegistrationRowChanged;
2607
2608 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2609 public event RegistrationRowChangeEventHandler RegistrationRowDeleting;
2610
2611 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2612 public event RegistrationRowChangeEventHandler RegistrationRowDeleted;
2613
2614 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2615 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2616 public void AddRegistrationRow(RegistrationRow row) {
2617 this.Rows.Add(row);
2618 }
2619
2620 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2621 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2622 public RegistrationRow AddRegistrationRow(string UserName, string Password, string Name, string ContactNo, string Email, string JoiningDate) {
2623 RegistrationRow rowRegistrationRow = ((RegistrationRow)(this.NewRow()));
2624 object[] columnValuesArray = new object[] {
2625 UserName,
2626 Password,
2627 Name,
2628 ContactNo,
2629 Email,
2630 JoiningDate};
2631 rowRegistrationRow.ItemArray = columnValuesArray;
2632 this.Rows.Add(rowRegistrationRow);
2633 return rowRegistrationRow;
2634 }
2635
2636 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2637 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2638 public RegistrationRow FindByUserName(string UserName) {
2639 return ((RegistrationRow)(this.Rows.Find(new object[] {
2640 UserName})));
2641 }
2642
2643 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2644 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2645 public virtual global::System.Collections.IEnumerator GetEnumerator() {
2646 return this.Rows.GetEnumerator();
2647 }
2648
2649 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2650 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2651 public override global::System.Data.DataTable Clone() {
2652 RegistrationDataTable cln = ((RegistrationDataTable)(base.Clone()));
2653 cln.InitVars();
2654 return cln;
2655 }
2656
2657 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2658 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2659 protected override global::System.Data.DataTable CreateInstance() {
2660 return new RegistrationDataTable();
2661 }
2662
2663 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2664 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2665 internal void InitVars() {
2666 this.columnUserName = base.Columns["UserName"];
2667 this.columnPassword = base.Columns["Password"];
2668 this.columnName = base.Columns["Name"];
2669 this.columnContactNo = base.Columns["ContactNo"];
2670 this.columnEmail = base.Columns["Email"];
2671 this.columnJoiningDate = base.Columns["JoiningDate"];
2672 }
2673
2674 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2675 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2676 private void InitClass() {
2677 this.columnUserName = new global::System.Data.DataColumn("UserName", typeof(string), null, global::System.Data.MappingType.Element);
2678 base.Columns.Add(this.columnUserName);
2679 this.columnPassword = new global::System.Data.DataColumn("Password", typeof(string), null, global::System.Data.MappingType.Element);
2680 base.Columns.Add(this.columnPassword);
2681 this.columnName = new global::System.Data.DataColumn("Name", typeof(string), null, global::System.Data.MappingType.Element);
2682 base.Columns.Add(this.columnName);
2683 this.columnContactNo = new global::System.Data.DataColumn("ContactNo", typeof(string), null, global::System.Data.MappingType.Element);
2684 base.Columns.Add(this.columnContactNo);
2685 this.columnEmail = new global::System.Data.DataColumn("Email", typeof(string), null, global::System.Data.MappingType.Element);
2686 base.Columns.Add(this.columnEmail);
2687 this.columnJoiningDate = new global::System.Data.DataColumn("JoiningDate", typeof(string), null, global::System.Data.MappingType.Element);
2688 base.Columns.Add(this.columnJoiningDate);
2689 this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
2690 this.columnUserName}, true));
2691 this.columnUserName.AllowDBNull = false;
2692 this.columnUserName.Unique = true;
2693 this.columnUserName.MaxLength = 30;
2694 this.columnPassword.AllowDBNull = false;
2695 this.columnPassword.MaxLength = 30;
2696 this.columnName.AllowDBNull = false;
2697 this.columnName.MaxLength = 250;
2698 this.columnContactNo.AllowDBNull = false;
2699 this.columnContactNo.MaxLength = 15;
2700 this.columnEmail.MaxLength = 250;
2701 this.columnJoiningDate.MaxLength = 50;
2702 }
2703
2704 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2705 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2706 public RegistrationRow NewRegistrationRow() {
2707 return ((RegistrationRow)(this.NewRow()));
2708 }
2709
2710 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2711 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2712 protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
2713 return new RegistrationRow(builder);
2714 }
2715
2716 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2717 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2718 protected override global::System.Type GetRowType() {
2719 return typeof(RegistrationRow);
2720 }
2721
2722 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2723 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2724 protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
2725 base.OnRowChanged(e);
2726 if ((this.RegistrationRowChanged != null)) {
2727 this.RegistrationRowChanged(this, new RegistrationRowChangeEvent(((RegistrationRow)(e.Row)), e.Action));
2728 }
2729 }
2730
2731 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2732 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2733 protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
2734 base.OnRowChanging(e);
2735 if ((this.RegistrationRowChanging != null)) {
2736 this.RegistrationRowChanging(this, new RegistrationRowChangeEvent(((RegistrationRow)(e.Row)), e.Action));
2737 }
2738 }
2739
2740 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2741 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2742 protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
2743 base.OnRowDeleted(e);
2744 if ((this.RegistrationRowDeleted != null)) {
2745 this.RegistrationRowDeleted(this, new RegistrationRowChangeEvent(((RegistrationRow)(e.Row)), e.Action));
2746 }
2747 }
2748
2749 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2750 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2751 protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
2752 base.OnRowDeleting(e);
2753 if ((this.RegistrationRowDeleting != null)) {
2754 this.RegistrationRowDeleting(this, new RegistrationRowChangeEvent(((RegistrationRow)(e.Row)), e.Action));
2755 }
2756 }
2757
2758 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2759 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2760 public void RemoveRegistrationRow(RegistrationRow row) {
2761 this.Rows.Remove(row);
2762 }
2763
2764 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2765 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2766 public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
2767 global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
2768 global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
2769 POS_DBDataSet ds = new POS_DBDataSet();
2770 global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
2771 any1.Namespace = "http://www.w3.org/2001/XMLSchema";
2772 any1.MinOccurs = new decimal(0);
2773 any1.MaxOccurs = decimal.MaxValue;
2774 any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
2775 sequence.Items.Add(any1);
2776 global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
2777 any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
2778 any2.MinOccurs = new decimal(1);
2779 any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
2780 sequence.Items.Add(any2);
2781 global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
2782 attribute1.Name = "namespace";
2783 attribute1.FixedValue = ds.Namespace;
2784 type.Attributes.Add(attribute1);
2785 global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
2786 attribute2.Name = "tableTypeName";
2787 attribute2.FixedValue = "RegistrationDataTable";
2788 type.Attributes.Add(attribute2);
2789 type.Particle = sequence;
2790 global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
2791 if (xs.Contains(dsSchema.TargetNamespace)) {
2792 global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
2793 global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
2794 try {
2795 global::System.Xml.Schema.XmlSchema schema = null;
2796 dsSchema.Write(s1);
2797 for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
2798 schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
2799 s2.SetLength(0);
2800 schema.Write(s2);
2801 if ((s1.Length == s2.Length)) {
2802 s1.Position = 0;
2803 s2.Position = 0;
2804 for (; ((s1.Position != s1.Length)
2805 && (s1.ReadByte() == s2.ReadByte())); ) {
2806 ;
2807 }
2808 if ((s1.Position == s1.Length)) {
2809 return type;
2810 }
2811 }
2812 }
2813 }
2814 finally {
2815 if ((s1 != null)) {
2816 s1.Close();
2817 }
2818 if ((s2 != null)) {
2819 s2.Close();
2820 }
2821 }
2822 }
2823 xs.Add(dsSchema);
2824 return type;
2825 }
2826 }
2827
2828 /// <summary>
2829 ///Represents the strongly named DataTable class.
2830 ///</summary>
2831 [global::System.Serializable()]
2832 [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
2833 public partial class StockDataTable : global::System.Data.DataTable, global::System.Collections.IEnumerable {
2834
2835 private global::System.Data.DataColumn columnStockID;
2836
2837 private global::System.Data.DataColumn columnStockDate;
2838
2839 private global::System.Data.DataColumn columnProductID;
2840
2841 private global::System.Data.DataColumn columnSupplierID;
2842
2843 private global::System.Data.DataColumn columnQuantity;
2844
2845 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2846 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2847 public StockDataTable() {
2848 this.TableName = "Stock";
2849 this.BeginInit();
2850 this.InitClass();
2851 this.EndInit();
2852 }
2853
2854 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2855 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2856 internal StockDataTable(global::System.Data.DataTable table) {
2857 this.TableName = table.TableName;
2858 if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
2859 this.CaseSensitive = table.CaseSensitive;
2860 }
2861 if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
2862 this.Locale = table.Locale;
2863 }
2864 if ((table.Namespace != table.DataSet.Namespace)) {
2865 this.Namespace = table.Namespace;
2866 }
2867 this.Prefix = table.Prefix;
2868 this.MinimumCapacity = table.MinimumCapacity;
2869 }
2870
2871 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2872 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2873 protected StockDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
2874 base(info, context) {
2875 this.InitVars();
2876 }
2877
2878 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2879 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2880 public global::System.Data.DataColumn StockIDColumn {
2881 get {
2882 return this.columnStockID;
2883 }
2884 }
2885
2886 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2887 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2888 public global::System.Data.DataColumn StockDateColumn {
2889 get {
2890 return this.columnStockDate;
2891 }
2892 }
2893
2894 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2895 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2896 public global::System.Data.DataColumn ProductIDColumn {
2897 get {
2898 return this.columnProductID;
2899 }
2900 }
2901
2902 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2903 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2904 public global::System.Data.DataColumn SupplierIDColumn {
2905 get {
2906 return this.columnSupplierID;
2907 }
2908 }
2909
2910 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2911 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2912 public global::System.Data.DataColumn QuantityColumn {
2913 get {
2914 return this.columnQuantity;
2915 }
2916 }
2917
2918 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2919 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2920 [global::System.ComponentModel.Browsable(false)]
2921 public int Count {
2922 get {
2923 return this.Rows.Count;
2924 }
2925 }
2926
2927 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2928 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2929 public StockRow this[int index] {
2930 get {
2931 return ((StockRow)(this.Rows[index]));
2932 }
2933 }
2934
2935 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2936 public event StockRowChangeEventHandler StockRowChanging;
2937
2938 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2939 public event StockRowChangeEventHandler StockRowChanged;
2940
2941 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2942 public event StockRowChangeEventHandler StockRowDeleting;
2943
2944 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2945 public event StockRowChangeEventHandler StockRowDeleted;
2946
2947 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2948 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2949 public void AddStockRow(StockRow row) {
2950 this.Rows.Add(row);
2951 }
2952
2953 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2954 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2955 public StockRow AddStockRow(string StockID, string StockDate, ProductRow parentProductRowByFK_Stock_Product, SupplierRow parentSupplierRowByFK_Stock_Supplier, int Quantity) {
2956 StockRow rowStockRow = ((StockRow)(this.NewRow()));
2957 object[] columnValuesArray = new object[] {
2958 StockID,
2959 StockDate,
2960 null,
2961 null,
2962 Quantity};
2963 if ((parentProductRowByFK_Stock_Product != null)) {
2964 columnValuesArray[2] = parentProductRowByFK_Stock_Product[0];
2965 }
2966 if ((parentSupplierRowByFK_Stock_Supplier != null)) {
2967 columnValuesArray[3] = parentSupplierRowByFK_Stock_Supplier[0];
2968 }
2969 rowStockRow.ItemArray = columnValuesArray;
2970 this.Rows.Add(rowStockRow);
2971 return rowStockRow;
2972 }
2973
2974 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2975 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2976 public StockRow FindByStockID(string StockID) {
2977 return ((StockRow)(this.Rows.Find(new object[] {
2978 StockID})));
2979 }
2980
2981 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2982 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2983 public virtual global::System.Collections.IEnumerator GetEnumerator() {
2984 return this.Rows.GetEnumerator();
2985 }
2986
2987 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2988 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2989 public override global::System.Data.DataTable Clone() {
2990 StockDataTable cln = ((StockDataTable)(base.Clone()));
2991 cln.InitVars();
2992 return cln;
2993 }
2994
2995 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2996 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2997 protected override global::System.Data.DataTable CreateInstance() {
2998 return new StockDataTable();
2999 }
3000
3001 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
3002 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
3003 internal void InitVars() {
3004 this.columnStockID = base.Columns["StockID"];
3005 this.columnStockDate = base.Columns["StockDate"];
3006 this.columnProductID = base.Columns["ProductID"];
3007 this.columnSupplierID = base.Columns["SupplierID"];
3008 this.columnQuantity = base.Columns["Quantity"];
3009 }
3010
3011 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
3012 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
3013 private void InitClass() {
3014 this.columnStockID = new global::System.Data.DataColumn("StockID", typeof(string), null, global::System.Data.MappingType.Element);
3015 base.Columns.Add(this.columnStockID);
3016 this.columnStockDate = new global::System.Data.DataColumn("StockDate", typeof(string), null, global::System.Data.MappingType.Element);
3017 base.Columns.Add(this.columnStockDate);
3018 this.columnProductID = new global::System.Data.DataColumn("ProductID", typeof(string), null, global::System.Data.MappingType.Element);
3019 base.Columns.Add(this.columnProductID);
3020 this.columnSupplierID = new global::System.Data.DataColumn("SupplierID", typeof(string), null, global::System.Data.MappingType.Element);
3021 base.Columns.Add(this.columnSupplierID);
3022 this.columnQuantity = new global::System.Data.DataColumn("Quantity", typeof(int), null, global::System.Data.MappingType.Element);
3023 base.Columns.Add(this.columnQuantity);
3024 this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
3025 this.columnStockID}, true));
3026 this.columnStockID.AllowDBNull = false;
3027 this.columnStockID.Unique = true;
3028 this.columnStockID.MaxLength = 10;
3029 this.columnStockDate.AllowDBNull = false;
3030 this.columnStockDate.MaxLength = 30;
3031 this.columnProductID.AllowDBNull = false;
3032 this.columnProductID.MaxLength = 10;
3033 this.columnSupplierID.AllowDBNull = false;
3034 this.columnSupplierID.MaxLength = 10;
3035 this.columnQuantity.AllowDBNull = false;
3036 }
3037
3038 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
3039 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
3040 public StockRow NewStockRow() {
3041 return ((StockRow)(this.NewRow()));
3042 }
3043
3044 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
3045 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
3046 protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
3047 return new StockRow(builder);
3048 }
3049
3050 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
3051 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
3052 protected override global::System.Type GetRowType() {
3053 return typeof(StockRow);
3054 }
3055
3056 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
3057 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
3058 protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
3059 base.OnRowChanged(e);
3060 if ((this.StockRowChanged != null)) {
3061 this.StockRowChanged(this, new StockRowChangeEvent(((StockRow)(e.Row)), e.Action));
3062 }
3063 }
3064
3065 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
3066 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
3067 protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
3068 base.OnRowChanging(e);
3069 if ((this.StockRowChanging != null)) {
3070 this.StockRowChanging(this, new StockRowChangeEvent(((StockRow)(e.Row)), e.Action));
3071 }
3072 }
3073
3074 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
3075 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
3076 protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
3077 base.OnRowDeleted(e);
3078 if ((this.StockRowDeleted != null)) {
3079 this.StockRowDeleted(this, new StockRowChangeEvent(((StockRow)(e.Row)), e.Action));
3080 }
3081 }
3082
3083 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
3084 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
3085 protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
3086 base.OnRowDeleting(e);
3087 if ((this.StockRowDeleting != null)) {
3088 this.StockRowDeleting(this, new StockRowChangeEvent(((StockRow)(e.Row)), e.Action));
3089 }
3090 }
3091
3092 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
3093 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
3094 public void RemoveStockRow(StockRow row) {
3095 this.Rows.Remove(row);
3096 }
3097
3098 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
3099 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
3100 public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
3101 global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
3102 global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
3103 POS_DBDataSet ds = new POS_DBDataSet();
3104 global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
3105 any1.Namespace = "http://www.w3.org/2001/XMLSchema";
3106 any1.MinOccurs = new decimal(0);
3107 any1.MaxOccurs = decimal.MaxValue;
3108 any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
3109 sequence.Items.Add(any1);
3110 global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
3111 any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
3112 any2.MinOccurs = new decimal(1);
3113 any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
3114 sequence.Items.Add(any2);
3115 global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
3116 attribute1.Name = "namespace";
3117 attribute1.FixedValue = ds.Namespace;
3118 type.Attributes.Add(attribute1);
3119 global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
3120 attribute2.Name = "tableTypeName";
3121 attribute2.FixedValue = "StockDataTable";
3122 type.Attributes.Add(attribute2);
3123 type.Particle = sequence;
3124 global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
3125 if (xs.Contains(dsSchema.TargetNamespace)) {
3126 global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
3127 global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
3128 try {
3129 global::System.Xml.Schema.XmlSchema schema = null;
3130 dsSchema.Write(s1);
3131 for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
3132 schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
3133 s2.SetLength(0);
3134 schema.Write(s2);
3135 if ((s1.Length == s2.Length)) {
3136 s1.Position = 0;
3137 s2.Position = 0;
3138 for (; ((s1.Position != s1.Length)
3139 && (s1.ReadByte() == s2.ReadByte())); ) {
3140 ;
3141 }
3142 if ((s1.Position == s1.Length)) {
3143 return type;
3144 }
3145 }
3146 }
3147 }
3148 finally {
3149 if ((s1 != null)) {
3150 s1.Close();
3151 }
3152 if ((s2 != null)) {
3153 s2.Close();
3154 }
3155 }
3156 }
3157 xs.Add(dsSchema);
3158 return type;
3159 }
3160 }
3161
3162 /// <summary>
3163 ///Represents the strongly named DataTable class.
3164 ///</summary>
3165 [global::System.Serializable()]
3166 [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
3167 public partial class SubCategoryDataTable : global::System.Data.DataTable, global::System.Collections.IEnumerable {
3168
3169 private global::System.Data.DataColumn columnID;
3170
3171 private global::System.Data.DataColumn columnSubCategoryName;
3172
3173 private global::System.Data.DataColumn columnCategoryID;
3174
3175 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
3176 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
3177 public SubCategoryDataTable() {
3178 this.TableName = "SubCategory";
3179 this.BeginInit();
3180 this.InitClass();
3181 this.EndInit();
3182 }
3183
3184 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
3185 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
3186 internal SubCategoryDataTable(global::System.Data.DataTable table) {
3187 this.TableName = table.TableName;
3188 if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
3189 this.CaseSensitive = table.CaseSensitive;
3190 }
3191 if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
3192 this.Locale = table.Locale;
3193 }
3194 if ((table.Namespace != table.DataSet.Namespace)) {
3195 this.Namespace = table.Namespace;
3196 }
3197 this.Prefix = table.Prefix;
3198 this.MinimumCapacity = table.MinimumCapacity;
3199 }
3200
3201 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
3202 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
3203 protected SubCategoryDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
3204 base(info, context) {
3205 this.InitVars();
3206 }
3207
3208 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
3209 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
3210 public global::System.Data.DataColumn IDColumn {
3211 get {
3212 return this.columnID;
3213 }
3214 }
3215
3216 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
3217 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
3218 public global::System.Data.DataColumn SubCategoryNameColumn {
3219 get {
3220 return this.columnSubCategoryName;
3221 }
3222 }
3223
3224 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
3225 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
3226 public global::System.Data.DataColumn CategoryIDColumn {
3227 get {
3228 return this.columnCategoryID;
3229 }
3230 }
3231
3232 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
3233 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
3234 [global::System.ComponentModel.Browsable(false)]
3235 public int Count {
3236 get {
3237 return this.Rows.Count;
3238 }
3239 }
3240
3241 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
3242 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
3243 public SubCategoryRow this[int index] {
3244 get {
3245 return ((SubCategoryRow)(this.Rows[index]));
3246 }
3247 }
3248
3249 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
3250 public event SubCategoryRowChangeEventHandler SubCategoryRowChanging;
3251
3252 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
3253 public event SubCategoryRowChangeEventHandler SubCategoryRowChanged;
3254
3255 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
3256 public event SubCategoryRowChangeEventHandler SubCategoryRowDeleting;
3257
3258 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
3259 public event SubCategoryRowChangeEventHandler SubCategoryRowDeleted;
3260
3261 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
3262 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
3263 public void AddSubCategoryRow(SubCategoryRow row) {
3264 this.Rows.Add(row);
3265 }
3266
3267 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
3268 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
3269 public SubCategoryRow AddSubCategoryRow(string SubCategoryName, CategoryRow parentCategoryRowByFK_SubCategory_ToCategory) {
3270 SubCategoryRow rowSubCategoryRow = ((SubCategoryRow)(this.NewRow()));
3271 object[] columnValuesArray = new object[] {
3272 null,
3273 SubCategoryName,
3274 null};
3275 if ((parentCategoryRowByFK_SubCategory_ToCategory != null)) {
3276 columnValuesArray[2] = parentCategoryRowByFK_SubCategory_ToCategory[0];
3277 }
3278 rowSubCategoryRow.ItemArray = columnValuesArray;
3279 this.Rows.Add(rowSubCategoryRow);
3280 return rowSubCategoryRow;
3281 }
3282
3283 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
3284 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
3285 public SubCategoryRow FindByID(int ID) {
3286 return ((SubCategoryRow)(this.Rows.Find(new object[] {
3287 ID})));
3288 }
3289
3290 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
3291 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
3292 public virtual global::System.Collections.IEnumerator GetEnumerator() {
3293 return this.Rows.GetEnumerator();
3294 }
3295
3296 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
3297 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
3298 public override global::System.Data.DataTable Clone() {
3299 SubCategoryDataTable cln = ((SubCategoryDataTable)(base.Clone()));
3300 cln.InitVars();
3301 return cln;
3302 }
3303
3304 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
3305 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
3306 protected override global::System.Data.DataTable CreateInstance() {
3307 return new SubCategoryDataTable();
3308 }
3309
3310 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
3311 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
3312 internal void InitVars() {
3313 this.columnID = base.Columns["ID"];
3314 this.columnSubCategoryName = base.Columns["SubCategoryName"];
3315 this.columnCategoryID = base.Columns["CategoryID"];
3316 }
3317
3318 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
3319 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
3320 private void InitClass() {
3321 this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
3322 base.Columns.Add(this.columnID);
3323 this.columnSubCategoryName = new global::System.Data.DataColumn("SubCategoryName", typeof(string), null, global::System.Data.MappingType.Element);
3324 base.Columns.Add(this.columnSubCategoryName);
3325 this.columnCategoryID = new global::System.Data.DataColumn("CategoryID", typeof(int), null, global::System.Data.MappingType.Element);
3326 base.Columns.Add(this.columnCategoryID);
3327 this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
3328 this.columnID}, true));
3329 this.columnID.AutoIncrement = true;
3330 this.columnID.AutoIncrementSeed = -1;
3331 this.columnID.AutoIncrementStep = -1;
3332 this.columnID.AllowDBNull = false;
3333 this.columnID.ReadOnly = true;
3334 this.columnID.Unique = true;
3335 this.columnSubCategoryName.AllowDBNull = false;
3336 this.columnSubCategoryName.MaxLength = 250;
3337 this.columnCategoryID.AllowDBNull = false;
3338 }
3339
3340 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
3341 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
3342 public SubCategoryRow NewSubCategoryRow() {
3343 return ((SubCategoryRow)(this.NewRow()));
3344 }
3345
3346 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
3347 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
3348 protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
3349 return new SubCategoryRow(builder);
3350 }
3351
3352 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
3353 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
3354 protected override global::System.Type GetRowType() {
3355 return typeof(SubCategoryRow);
3356 }
3357
3358 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
3359 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
3360 protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
3361 base.OnRowChanged(e);
3362 if ((this.SubCategoryRowChanged != null)) {
3363 this.SubCategoryRowChanged(this, new SubCategoryRowChangeEvent(((SubCategoryRow)(e.Row)), e.Action));
3364 }
3365 }
3366
3367 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
3368 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
3369 protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
3370 base.OnRowChanging(e);
3371 if ((this.SubCategoryRowChanging != null)) {
3372 this.SubCategoryRowChanging(this, new SubCategoryRowChangeEvent(((SubCategoryRow)(e.Row)), e.Action));
3373 }
3374 }
3375
3376 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
3377 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
3378 protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
3379 base.OnRowDeleted(e);
3380 if ((this.SubCategoryRowDeleted != null)) {
3381 this.SubCategoryRowDeleted(this, new SubCategoryRowChangeEvent(((SubCategoryRow)(e.Row)), e.Action));
3382 }
3383 }
3384
3385 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
3386 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
3387 protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
3388 base.OnRowDeleting(e);
3389 if ((this.SubCategoryRowDeleting != null)) {
3390 this.SubCategoryRowDeleting(this, new SubCategoryRowChangeEvent(((SubCategoryRow)(e.Row)), e.Action));
3391 }
3392 }
3393
3394 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
3395 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
3396 public void RemoveSubCategoryRow(SubCategoryRow row) {
3397 this.Rows.Remove(row);
3398 }
3399
3400 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
3401 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
3402 public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
3403 global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
3404 global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
3405 POS_DBDataSet ds = new POS_DBDataSet();
3406 global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
3407 any1.Namespace = "http://www.w3.org/2001/XMLSchema";
3408 any1.MinOccurs = new decimal(0);
3409 any1.MaxOccurs = decimal.MaxValue;
3410 any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
3411 sequence.Items.Add(any1);
3412 global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
3413 any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
3414 any2.MinOccurs = new decimal(1);
3415 any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
3416 sequence.Items.Add(any2);
3417 global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
3418 attribute1.Name = "namespace";
3419 attribute1.FixedValue = ds.Namespace;
3420 type.Attributes.Add(attribute1);
3421 global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
3422 attribute2.Name = "tableTypeName";
3423 attribute2.FixedValue = "SubCategoryDataTable";
3424 type.Attributes.Add(attribute2);
3425 type.Particle = sequence;
3426 global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
3427 if (xs.Contains(dsSchema.TargetNamespace)) {
3428 global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
3429 global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
3430 try {
3431 global::System.Xml.Schema.XmlSchema schema = null;
3432 dsSchema.Write(s1);
3433 for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
3434 schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
3435 s2.SetLength(0);
3436 schema.Write(s2);
3437 if ((s1.Length == s2.Length)) {
3438 s1.Position = 0;
3439 s2.Position = 0;
3440 for (; ((s1.Position != s1.Length)
3441 && (s1.ReadByte() == s2.ReadByte())); ) {
3442 ;
3443 }
3444 if ((s1.Position == s1.Length)) {
3445 return type;
3446 }
3447 }
3448 }
3449 }
3450 finally {
3451 if ((s1 != null)) {
3452 s1.Close();
3453 }
3454 if ((s2 != null)) {
3455 s2.Close();
3456 }
3457 }
3458 }
3459 xs.Add(dsSchema);
3460 return type;
3461 }
3462 }
3463
3464 /// <summary>
3465 ///Represents the strongly named DataTable class.
3466 ///</summary>
3467 [global::System.Serializable()]
3468 [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
3469 public partial class SupplierDataTable : global::System.Data.DataTable, global::System.Collections.IEnumerable {
3470
3471 private global::System.Data.DataColumn columnSupplierId;
3472
3473 private global::System.Data.DataColumn columnSupplierName;
3474
3475 private global::System.Data.DataColumn columnAddress;
3476
3477 private global::System.Data.DataColumn columnCity;
3478
3479 private global::System.Data.DataColumn columnContactNo;
3480
3481 private global::System.Data.DataColumn columnContactNo1;
3482
3483 private global::System.Data.DataColumn columnEmail;
3484
3485 private global::System.Data.DataColumn columnNotes;
3486
3487 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
3488 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
3489 public SupplierDataTable() {
3490 this.TableName = "Supplier";
3491 this.BeginInit();
3492 this.InitClass();
3493 this.EndInit();
3494 }
3495
3496 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
3497 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
3498 internal SupplierDataTable(global::System.Data.DataTable table) {
3499 this.TableName = table.TableName;
3500 if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
3501 this.CaseSensitive = table.CaseSensitive;
3502 }
3503 if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
3504 this.Locale = table.Locale;
3505 }
3506 if ((table.Namespace != table.DataSet.Namespace)) {
3507 this.Namespace = table.Namespace;
3508 }
3509 this.Prefix = table.Prefix;
3510 this.MinimumCapacity = table.MinimumCapacity;
3511 }
3512
3513 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
3514 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
3515 protected SupplierDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
3516 base(info, context) {
3517 this.InitVars();
3518 }
3519
3520 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
3521 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
3522 public global::System.Data.DataColumn SupplierIdColumn {
3523 get {
3524 return this.columnSupplierId;
3525 }
3526 }
3527
3528 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
3529 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
3530 public global::System.Data.DataColumn SupplierNameColumn {
3531 get {
3532 return this.columnSupplierName;
3533 }
3534 }
3535
3536 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
3537 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
3538 public global::System.Data.DataColumn AddressColumn {
3539 get {
3540 return this.columnAddress;
3541 }
3542 }
3543
3544 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
3545 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
3546 public global::System.Data.DataColumn CityColumn {
3547 get {
3548 return this.columnCity;
3549 }
3550 }
3551
3552 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
3553 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
3554 public global::System.Data.DataColumn ContactNoColumn {
3555 get {
3556 return this.columnContactNo;
3557 }
3558 }
3559
3560 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
3561 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
3562 public global::System.Data.DataColumn ContactNo1Column {
3563 get {
3564 return this.columnContactNo1;
3565 }
3566 }
3567
3568 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
3569 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
3570 public global::System.Data.DataColumn EmailColumn {
3571 get {
3572 return this.columnEmail;
3573 }
3574 }
3575
3576 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
3577 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
3578 public global::System.Data.DataColumn NotesColumn {
3579 get {
3580 return this.columnNotes;
3581 }
3582 }
3583
3584 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
3585 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
3586 [global::System.ComponentModel.Browsable(false)]
3587 public int Count {
3588 get {
3589 return this.Rows.Count;
3590 }
3591 }
3592
3593 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
3594 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
3595 public SupplierRow this[int index] {
3596 get {
3597 return ((SupplierRow)(this.Rows[index]));
3598 }
3599 }
3600
3601 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
3602 public event SupplierRowChangeEventHandler SupplierRowChanging;
3603
3604 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
3605 public event SupplierRowChangeEventHandler SupplierRowChanged;
3606
3607 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
3608 public event SupplierRowChangeEventHandler SupplierRowDeleting;
3609
3610 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
3611 public event SupplierRowChangeEventHandler SupplierRowDeleted;
3612
3613 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
3614 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
3615 public void AddSupplierRow(SupplierRow row) {
3616 this.Rows.Add(row);
3617 }
3618
3619 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
3620 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
3621 public SupplierRow AddSupplierRow(string SupplierId, string SupplierName, string Address, string City, string ContactNo, string ContactNo1, string Email, string Notes) {
3622 SupplierRow rowSupplierRow = ((SupplierRow)(this.NewRow()));
3623 object[] columnValuesArray = new object[] {
3624 SupplierId,
3625 SupplierName,
3626 Address,
3627 City,
3628 ContactNo,
3629 ContactNo1,
3630 Email,
3631 Notes};
3632 rowSupplierRow.ItemArray = columnValuesArray;
3633 this.Rows.Add(rowSupplierRow);
3634 return rowSupplierRow;
3635 }
3636
3637 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
3638 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
3639 public SupplierRow FindBySupplierId(string SupplierId) {
3640 return ((SupplierRow)(this.Rows.Find(new object[] {
3641 SupplierId})));
3642 }
3643
3644 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
3645 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
3646 public virtual global::System.Collections.IEnumerator GetEnumerator() {
3647 return this.Rows.GetEnumerator();
3648 }
3649
3650 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
3651 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
3652 public override global::System.Data.DataTable Clone() {
3653 SupplierDataTable cln = ((SupplierDataTable)(base.Clone()));
3654 cln.InitVars();
3655 return cln;
3656 }
3657
3658 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
3659 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
3660 protected override global::System.Data.DataTable CreateInstance() {
3661 return new SupplierDataTable();
3662 }
3663
3664 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
3665 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
3666 internal void InitVars() {
3667 this.columnSupplierId = base.Columns["SupplierId"];
3668 this.columnSupplierName = base.Columns["SupplierName"];
3669 this.columnAddress = base.Columns["Address"];
3670 this.columnCity = base.Columns["City"];
3671 this.columnContactNo = base.Columns["ContactNo"];
3672 this.columnContactNo1 = base.Columns["ContactNo1"];
3673 this.columnEmail = base.Columns["Email"];
3674 this.columnNotes = base.Columns["Notes"];
3675 }
3676
3677 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
3678 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
3679 private void InitClass() {
3680 this.columnSupplierId = new global::System.Data.DataColumn("SupplierId", typeof(string), null, global::System.Data.MappingType.Element);
3681 base.Columns.Add(this.columnSupplierId);
3682 this.columnSupplierName = new global::System.Data.DataColumn("SupplierName", typeof(string), null, global::System.Data.MappingType.Element);
3683 base.Columns.Add(this.columnSupplierName);
3684 this.columnAddress = new global::System.Data.DataColumn("Address", typeof(string), null, global::System.Data.MappingType.Element);
3685 base.Columns.Add(this.columnAddress);
3686 this.columnCity = new global::System.Data.DataColumn("City", typeof(string), null, global::System.Data.MappingType.Element);
3687 base.Columns.Add(this.columnCity);
3688 this.columnContactNo = new global::System.Data.DataColumn("ContactNo", typeof(string), null, global::System.Data.MappingType.Element);
3689 base.Columns.Add(this.columnContactNo);
3690 this.columnContactNo1 = new global::System.Data.DataColumn("ContactNo1", typeof(string), null, global::System.Data.MappingType.Element);
3691 base.Columns.Add(this.columnContactNo1);
3692 this.columnEmail = new global::System.Data.DataColumn("Email", typeof(string), null, global::System.Data.MappingType.Element);
3693 base.Columns.Add(this.columnEmail);
3694 this.columnNotes = new global::System.Data.DataColumn("Notes", typeof(string), null, global::System.Data.MappingType.Element);
3695 base.Columns.Add(this.columnNotes);
3696 this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
3697 this.columnSupplierId}, true));
3698 this.columnSupplierId.AllowDBNull = false;
3699 this.columnSupplierId.Unique = true;
3700 this.columnSupplierId.MaxLength = 10;
3701 this.columnSupplierName.AllowDBNull = false;
3702 this.columnSupplierName.MaxLength = 250;
3703 this.columnAddress.AllowDBNull = false;
3704 this.columnAddress.MaxLength = 250;
3705 this.columnCity.AllowDBNull = false;
3706 this.columnCity.MaxLength = 250;
3707 this.columnContactNo.AllowDBNull = false;
3708 this.columnContactNo.MaxLength = 15;
3709 this.columnContactNo1.MaxLength = 15;
3710 this.columnEmail.MaxLength = 250;
3711 this.columnNotes.MaxLength = 2147483647;
3712 }
3713
3714 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
3715 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
3716 public SupplierRow NewSupplierRow() {
3717 return ((SupplierRow)(this.NewRow()));
3718 }
3719
3720 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
3721 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
3722 protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
3723 return new SupplierRow(builder);
3724 }
3725
3726 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
3727 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
3728 protected override global::System.Type GetRowType() {
3729 return typeof(SupplierRow);
3730 }
3731
3732 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
3733 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
3734 protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
3735 base.OnRowChanged(e);
3736 if ((this.SupplierRowChanged != null)) {
3737 this.SupplierRowChanged(this, new SupplierRowChangeEvent(((SupplierRow)(e.Row)), e.Action));
3738 }
3739 }
3740
3741 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
3742 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
3743 protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
3744 base.OnRowChanging(e);
3745 if ((this.SupplierRowChanging != null)) {
3746 this.SupplierRowChanging(this, new SupplierRowChangeEvent(((SupplierRow)(e.Row)), e.Action));
3747 }
3748 }
3749
3750 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
3751 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
3752 protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
3753 base.OnRowDeleted(e);
3754 if ((this.SupplierRowDeleted != null)) {
3755 this.SupplierRowDeleted(this, new SupplierRowChangeEvent(((SupplierRow)(e.Row)), e.Action));
3756 }
3757 }
3758
3759 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
3760 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
3761 protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
3762 base.OnRowDeleting(e);
3763 if ((this.SupplierRowDeleting != null)) {
3764 this.SupplierRowDeleting(this, new SupplierRowChangeEvent(((SupplierRow)(e.Row)), e.Action));
3765 }
3766 }
3767
3768 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
3769 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
3770 public void RemoveSupplierRow(SupplierRow row) {
3771 this.Rows.Remove(row);
3772 }
3773
3774 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
3775 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
3776 public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
3777 global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
3778 global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
3779 POS_DBDataSet ds = new POS_DBDataSet();
3780 global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
3781 any1.Namespace = "http://www.w3.org/2001/XMLSchema";
3782 any1.MinOccurs = new decimal(0);
3783 any1.MaxOccurs = decimal.MaxValue;
3784 any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
3785 sequence.Items.Add(any1);
3786 global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
3787 any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
3788 any2.MinOccurs = new decimal(1);
3789 any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
3790 sequence.Items.Add(any2);
3791 global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
3792 attribute1.Name = "namespace";
3793 attribute1.FixedValue = ds.Namespace;
3794 type.Attributes.Add(attribute1);
3795 global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
3796 attribute2.Name = "tableTypeName";
3797 attribute2.FixedValue = "SupplierDataTable";
3798 type.Attributes.Add(attribute2);
3799 type.Particle = sequence;
3800 global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
3801 if (xs.Contains(dsSchema.TargetNamespace)) {
3802 global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
3803 global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
3804 try {
3805 global::System.Xml.Schema.XmlSchema schema = null;
3806 dsSchema.Write(s1);
3807 for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
3808 schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
3809 s2.SetLength(0);
3810 schema.Write(s2);
3811 if ((s1.Length == s2.Length)) {
3812 s1.Position = 0;
3813 s2.Position = 0;
3814 for (; ((s1.Position != s1.Length)
3815 && (s1.ReadByte() == s2.ReadByte())); ) {
3816 ;
3817 }
3818 if ((s1.Position == s1.Length)) {
3819 return type;
3820 }
3821 }
3822 }
3823 }
3824 finally {
3825 if ((s1 != null)) {
3826 s1.Close();
3827 }
3828 if ((s2 != null)) {
3829 s2.Close();
3830 }
3831 }
3832 }
3833 xs.Add(dsSchema);
3834 return type;
3835 }
3836 }
3837
3838 /// <summary>
3839 ///Represents the strongly named DataTable class.
3840 ///</summary>
3841 [global::System.Serializable()]
3842 [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
3843 public partial class Temp_StockDataTable : global::System.Data.DataTable, global::System.Collections.IEnumerable {
3844
3845 private global::System.Data.DataColumn columnID;
3846
3847 private global::System.Data.DataColumn columnProductID;
3848
3849 private global::System.Data.DataColumn columnQuantity;
3850
3851 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
3852 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
3853 public Temp_StockDataTable() {
3854 this.TableName = "Temp_Stock";
3855 this.BeginInit();
3856 this.InitClass();
3857 this.EndInit();
3858 }
3859
3860 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
3861 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
3862 internal Temp_StockDataTable(global::System.Data.DataTable table) {
3863 this.TableName = table.TableName;
3864 if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
3865 this.CaseSensitive = table.CaseSensitive;
3866 }
3867 if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
3868 this.Locale = table.Locale;
3869 }
3870 if ((table.Namespace != table.DataSet.Namespace)) {
3871 this.Namespace = table.Namespace;
3872 }
3873 this.Prefix = table.Prefix;
3874 this.MinimumCapacity = table.MinimumCapacity;
3875 }
3876
3877 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
3878 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
3879 protected Temp_StockDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
3880 base(info, context) {
3881 this.InitVars();
3882 }
3883
3884 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
3885 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
3886 public global::System.Data.DataColumn IDColumn {
3887 get {
3888 return this.columnID;
3889 }
3890 }
3891
3892 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
3893 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
3894 public global::System.Data.DataColumn ProductIDColumn {
3895 get {
3896 return this.columnProductID;
3897 }
3898 }
3899
3900 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
3901 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
3902 public global::System.Data.DataColumn QuantityColumn {
3903 get {
3904 return this.columnQuantity;
3905 }
3906 }
3907
3908 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
3909 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
3910 [global::System.ComponentModel.Browsable(false)]
3911 public int Count {
3912 get {
3913 return this.Rows.Count;
3914 }
3915 }
3916
3917 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
3918 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
3919 public Temp_StockRow this[int index] {
3920 get {
3921 return ((Temp_StockRow)(this.Rows[index]));
3922 }
3923 }
3924
3925 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
3926 public event Temp_StockRowChangeEventHandler Temp_StockRowChanging;
3927
3928 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
3929 public event Temp_StockRowChangeEventHandler Temp_StockRowChanged;
3930
3931 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
3932 public event Temp_StockRowChangeEventHandler Temp_StockRowDeleting;
3933
3934 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
3935 public event Temp_StockRowChangeEventHandler Temp_StockRowDeleted;
3936
3937 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
3938 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
3939 public void AddTemp_StockRow(Temp_StockRow row) {
3940 this.Rows.Add(row);
3941 }
3942
3943 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
3944 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
3945 public Temp_StockRow AddTemp_StockRow(string ProductID, int Quantity) {
3946 Temp_StockRow rowTemp_StockRow = ((Temp_StockRow)(this.NewRow()));
3947 object[] columnValuesArray = new object[] {
3948 null,
3949 ProductID,
3950 Quantity};
3951 rowTemp_StockRow.ItemArray = columnValuesArray;
3952 this.Rows.Add(rowTemp_StockRow);
3953 return rowTemp_StockRow;
3954 }
3955
3956 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
3957 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
3958 public Temp_StockRow FindByID(int ID) {
3959 return ((Temp_StockRow)(this.Rows.Find(new object[] {
3960 ID})));
3961 }
3962
3963 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
3964 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
3965 public virtual global::System.Collections.IEnumerator GetEnumerator() {
3966 return this.Rows.GetEnumerator();
3967 }
3968
3969 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
3970 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
3971 public override global::System.Data.DataTable Clone() {
3972 Temp_StockDataTable cln = ((Temp_StockDataTable)(base.Clone()));
3973 cln.InitVars();
3974 return cln;
3975 }
3976
3977 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
3978 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
3979 protected override global::System.Data.DataTable CreateInstance() {
3980 return new Temp_StockDataTable();
3981 }
3982
3983 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
3984 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
3985 internal void InitVars() {
3986 this.columnID = base.Columns["ID"];
3987 this.columnProductID = base.Columns["ProductID"];
3988 this.columnQuantity = base.Columns["Quantity"];
3989 }
3990
3991 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
3992 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
3993 private void InitClass() {
3994 this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
3995 base.Columns.Add(this.columnID);
3996 this.columnProductID = new global::System.Data.DataColumn("ProductID", typeof(string), null, global::System.Data.MappingType.Element);
3997 base.Columns.Add(this.columnProductID);
3998 this.columnQuantity = new global::System.Data.DataColumn("Quantity", typeof(int), null, global::System.Data.MappingType.Element);
3999 base.Columns.Add(this.columnQuantity);
4000 this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
4001 this.columnID}, true));
4002 this.columnID.AutoIncrement = true;
4003 this.columnID.AutoIncrementSeed = -1;
4004 this.columnID.AutoIncrementStep = -1;
4005 this.columnID.AllowDBNull = false;
4006 this.columnID.ReadOnly = true;
4007 this.columnID.Unique = true;
4008 this.columnProductID.AllowDBNull = false;
4009 this.columnProductID.MaxLength = 10;
4010 this.columnQuantity.AllowDBNull = false;
4011 }
4012
4013 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
4014 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
4015 public Temp_StockRow NewTemp_StockRow() {
4016 return ((Temp_StockRow)(this.NewRow()));
4017 }
4018
4019 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
4020 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
4021 protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
4022 return new Temp_StockRow(builder);
4023 }
4024
4025 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
4026 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
4027 protected override global::System.Type GetRowType() {
4028 return typeof(Temp_StockRow);
4029 }
4030
4031 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
4032 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
4033 protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
4034 base.OnRowChanged(e);
4035 if ((this.Temp_StockRowChanged != null)) {
4036 this.Temp_StockRowChanged(this, new Temp_StockRowChangeEvent(((Temp_StockRow)(e.Row)), e.Action));
4037 }
4038 }
4039
4040 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
4041 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
4042 protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
4043 base.OnRowChanging(e);
4044 if ((this.Temp_StockRowChanging != null)) {
4045 this.Temp_StockRowChanging(this, new Temp_StockRowChangeEvent(((Temp_StockRow)(e.Row)), e.Action));
4046 }
4047 }
4048
4049 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
4050 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
4051 protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
4052 base.OnRowDeleted(e);
4053 if ((this.Temp_StockRowDeleted != null)) {
4054 this.Temp_StockRowDeleted(this, new Temp_StockRowChangeEvent(((Temp_StockRow)(e.Row)), e.Action));
4055 }
4056 }
4057
4058 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
4059 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
4060 protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
4061 base.OnRowDeleting(e);
4062 if ((this.Temp_StockRowDeleting != null)) {
4063 this.Temp_StockRowDeleting(this, new Temp_StockRowChangeEvent(((Temp_StockRow)(e.Row)), e.Action));
4064 }
4065 }
4066
4067 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
4068 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
4069 public void RemoveTemp_StockRow(Temp_StockRow row) {
4070 this.Rows.Remove(row);
4071 }
4072
4073 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
4074 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
4075 public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
4076 global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
4077 global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
4078 POS_DBDataSet ds = new POS_DBDataSet();
4079 global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
4080 any1.Namespace = "http://www.w3.org/2001/XMLSchema";
4081 any1.MinOccurs = new decimal(0);
4082 any1.MaxOccurs = decimal.MaxValue;
4083 any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
4084 sequence.Items.Add(any1);
4085 global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
4086 any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
4087 any2.MinOccurs = new decimal(1);
4088 any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
4089 sequence.Items.Add(any2);
4090 global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
4091 attribute1.Name = "namespace";
4092 attribute1.FixedValue = ds.Namespace;
4093 type.Attributes.Add(attribute1);
4094 global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
4095 attribute2.Name = "tableTypeName";
4096 attribute2.FixedValue = "Temp_StockDataTable";
4097 type.Attributes.Add(attribute2);
4098 type.Particle = sequence;
4099 global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
4100 if (xs.Contains(dsSchema.TargetNamespace)) {
4101 global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
4102 global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
4103 try {
4104 global::System.Xml.Schema.XmlSchema schema = null;
4105 dsSchema.Write(s1);
4106 for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
4107 schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
4108 s2.SetLength(0);
4109 schema.Write(s2);
4110 if ((s1.Length == s2.Length)) {
4111 s1.Position = 0;
4112 s2.Position = 0;
4113 for (; ((s1.Position != s1.Length)
4114 && (s1.ReadByte() == s2.ReadByte())); ) {
4115 ;
4116 }
4117 if ((s1.Position == s1.Length)) {
4118 return type;
4119 }
4120 }
4121 }
4122 }
4123 finally {
4124 if ((s1 != null)) {
4125 s1.Close();
4126 }
4127 if ((s2 != null)) {
4128 s2.Close();
4129 }
4130 }
4131 }
4132 xs.Add(dsSchema);
4133 return type;
4134 }
4135 }
4136
4137 /// <summary>
4138 ///Represents strongly named DataRow class.
4139 ///</summary>
4140 public partial class CategoryRow : global::System.Data.DataRow {
4141
4142 private CategoryDataTable tableCategory;
4143
4144 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
4145 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
4146 internal CategoryRow(global::System.Data.DataRowBuilder rb) :
4147 base(rb) {
4148 this.tableCategory = ((CategoryDataTable)(this.Table));
4149 }
4150
4151 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
4152 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
4153 public int ID {
4154 get {
4155 return ((int)(this[this.tableCategory.IDColumn]));
4156 }
4157 set {
4158 this[this.tableCategory.IDColumn] = value;
4159 }
4160 }
4161
4162 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
4163 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
4164 public string CategoryName {
4165 get {
4166 return ((string)(this[this.tableCategory.CategoryNameColumn]));
4167 }
4168 set {
4169 this[this.tableCategory.CategoryNameColumn] = value;
4170 }
4171 }
4172
4173 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
4174 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
4175 public ProductRow[] GetProductRows() {
4176 if ((this.Table.ChildRelations["FK_Product_ToCategory"] == null)) {
4177 return new ProductRow[0];
4178 }
4179 else {
4180 return ((ProductRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Product_ToCategory"])));
4181 }
4182 }
4183
4184 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
4185 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
4186 public SubCategoryRow[] GetSubCategoryRows() {
4187 if ((this.Table.ChildRelations["FK_SubCategory_ToCategory"] == null)) {
4188 return new SubCategoryRow[0];
4189 }
4190 else {
4191 return ((SubCategoryRow[])(base.GetChildRows(this.Table.ChildRelations["FK_SubCategory_ToCategory"])));
4192 }
4193 }
4194 }
4195
4196 /// <summary>
4197 ///Represents strongly named DataRow class.
4198 ///</summary>
4199 public partial class CustomerRow : global::System.Data.DataRow {
4200
4201 private CustomerDataTable tableCustomer;
4202
4203 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
4204 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
4205 internal CustomerRow(global::System.Data.DataRowBuilder rb) :
4206 base(rb) {
4207 this.tableCustomer = ((CustomerDataTable)(this.Table));
4208 }
4209
4210 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
4211 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
4212 public string CustomerId {
4213 get {
4214 return ((string)(this[this.tableCustomer.CustomerIdColumn]));
4215 }
4216 set {
4217 this[this.tableCustomer.CustomerIdColumn] = value;
4218 }
4219 }
4220
4221 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
4222 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
4223 public string CustomerName {
4224 get {
4225 return ((string)(this[this.tableCustomer.CustomerNameColumn]));
4226 }
4227 set {
4228 this[this.tableCustomer.CustomerNameColumn] = value;
4229 }
4230 }
4231
4232 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
4233 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
4234 public string Address {
4235 get {
4236 return ((string)(this[this.tableCustomer.AddressColumn]));
4237 }
4238 set {
4239 this[this.tableCustomer.AddressColumn] = value;
4240 }
4241 }
4242
4243 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
4244 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
4245 public string City {
4246 get {
4247 return ((string)(this[this.tableCustomer.CityColumn]));
4248 }
4249 set {
4250 this[this.tableCustomer.CityColumn] = value;
4251 }
4252 }
4253
4254 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
4255 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
4256 public string ContactNo {
4257 get {
4258 return ((string)(this[this.tableCustomer.ContactNoColumn]));
4259 }
4260 set {
4261 this[this.tableCustomer.ContactNoColumn] = value;
4262 }
4263 }
4264
4265 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
4266 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
4267 public string ContactNo1 {
4268 get {
4269 try {
4270 return ((string)(this[this.tableCustomer.ContactNo1Column]));
4271 }
4272 catch (global::System.InvalidCastException e) {
4273 throw new global::System.Data.StrongTypingException("The value for column \'ContactNo1\' in table \'Customer\' is DBNull.", e);
4274 }
4275 }
4276 set {
4277 this[this.tableCustomer.ContactNo1Column] = value;
4278 }
4279 }
4280
4281 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
4282 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
4283 public string Email {
4284 get {
4285 try {
4286 return ((string)(this[this.tableCustomer.EmailColumn]));
4287 }
4288 catch (global::System.InvalidCastException e) {
4289 throw new global::System.Data.StrongTypingException("The value for column \'Email\' in table \'Customer\' is DBNull.", e);
4290 }
4291 }
4292 set {
4293 this[this.tableCustomer.EmailColumn] = value;
4294 }
4295 }
4296
4297 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
4298 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
4299 public string Notes {
4300 get {
4301 try {
4302 return ((string)(this[this.tableCustomer.NotesColumn]));
4303 }
4304 catch (global::System.InvalidCastException e) {
4305 throw new global::System.Data.StrongTypingException("The value for column \'Notes\' in table \'Customer\' is DBNull.", e);
4306 }
4307 }
4308 set {
4309 this[this.tableCustomer.NotesColumn] = value;
4310 }
4311 }
4312
4313 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
4314 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
4315 public bool IsContactNo1Null() {
4316 return this.IsNull(this.tableCustomer.ContactNo1Column);
4317 }
4318
4319 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
4320 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
4321 public void SetContactNo1Null() {
4322 this[this.tableCustomer.ContactNo1Column] = global::System.Convert.DBNull;
4323 }
4324
4325 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
4326 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
4327 public bool IsEmailNull() {
4328 return this.IsNull(this.tableCustomer.EmailColumn);
4329 }
4330
4331 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
4332 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
4333 public void SetEmailNull() {
4334 this[this.tableCustomer.EmailColumn] = global::System.Convert.DBNull;
4335 }
4336
4337 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
4338 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
4339 public bool IsNotesNull() {
4340 return this.IsNull(this.tableCustomer.NotesColumn);
4341 }
4342
4343 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
4344 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
4345 public void SetNotesNull() {
4346 this[this.tableCustomer.NotesColumn] = global::System.Convert.DBNull;
4347 }
4348
4349 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
4350 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
4351 public Invoice_InfoRow[] GetInvoice_InfoRows() {
4352 if ((this.Table.ChildRelations["FK_Table_Customer"] == null)) {
4353 return new Invoice_InfoRow[0];
4354 }
4355 else {
4356 return ((Invoice_InfoRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Table_Customer"])));
4357 }
4358 }
4359 }
4360
4361 /// <summary>
4362 ///Represents strongly named DataRow class.
4363 ///</summary>
4364 public partial class Invoice_InfoRow : global::System.Data.DataRow {
4365
4366 private Invoice_InfoDataTable tableInvoice_Info;
4367
4368 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
4369 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
4370 internal Invoice_InfoRow(global::System.Data.DataRowBuilder rb) :
4371 base(rb) {
4372 this.tableInvoice_Info = ((Invoice_InfoDataTable)(this.Table));
4373 }
4374
4375 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
4376 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
4377 public string InvoiceNo {
4378 get {
4379 return ((string)(this[this.tableInvoice_Info.InvoiceNoColumn]));
4380 }
4381 set {
4382 this[this.tableInvoice_Info.InvoiceNoColumn] = value;
4383 }
4384 }
4385
4386 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
4387 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
4388 public string InvoiceDate {
4389 get {
4390 return ((string)(this[this.tableInvoice_Info.InvoiceDateColumn]));
4391 }
4392 set {
4393 this[this.tableInvoice_Info.InvoiceDateColumn] = value;
4394 }
4395 }
4396
4397 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
4398 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
4399 public string CustomerID {
4400 get {
4401 return ((string)(this[this.tableInvoice_Info.CustomerIDColumn]));
4402 }
4403 set {
4404 this[this.tableInvoice_Info.CustomerIDColumn] = value;
4405 }
4406 }
4407
4408 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
4409 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
4410 public double SubTotal {
4411 get {
4412 return ((double)(this[this.tableInvoice_Info.SubTotalColumn]));
4413 }
4414 set {
4415 this[this.tableInvoice_Info.SubTotalColumn] = value;
4416 }
4417 }
4418
4419 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
4420 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
4421 public double VATPer {
4422 get {
4423 return ((double)(this[this.tableInvoice_Info.VATPerColumn]));
4424 }
4425 set {
4426 this[this.tableInvoice_Info.VATPerColumn] = value;
4427 }
4428 }
4429
4430 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
4431 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
4432 public double VATAmount {
4433 get {
4434 return ((double)(this[this.tableInvoice_Info.VATAmountColumn]));
4435 }
4436 set {
4437 this[this.tableInvoice_Info.VATAmountColumn] = value;
4438 }
4439 }
4440
4441 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
4442 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
4443 public double DiscountPer {
4444 get {
4445 return ((double)(this[this.tableInvoice_Info.DiscountPerColumn]));
4446 }
4447 set {
4448 this[this.tableInvoice_Info.DiscountPerColumn] = value;
4449 }
4450 }
4451
4452 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
4453 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
4454 public double DiscountAmount {
4455 get {
4456 return ((double)(this[this.tableInvoice_Info.DiscountAmountColumn]));
4457 }
4458 set {
4459 this[this.tableInvoice_Info.DiscountAmountColumn] = value;
4460 }
4461 }
4462
4463 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
4464 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
4465 public double GrandTotal {
4466 get {
4467 return ((double)(this[this.tableInvoice_Info.GrandTotalColumn]));
4468 }
4469 set {
4470 this[this.tableInvoice_Info.GrandTotalColumn] = value;
4471 }
4472 }
4473
4474 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
4475 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
4476 public double TotalPayment {
4477 get {
4478 return ((double)(this[this.tableInvoice_Info.TotalPaymentColumn]));
4479 }
4480 set {
4481 this[this.tableInvoice_Info.TotalPaymentColumn] = value;
4482 }
4483 }
4484
4485 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
4486 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
4487 public double PaymentDue {
4488 get {
4489 return ((double)(this[this.tableInvoice_Info.PaymentDueColumn]));
4490 }
4491 set {
4492 this[this.tableInvoice_Info.PaymentDueColumn] = value;
4493 }
4494 }
4495
4496 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
4497 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
4498 public string PaymentType {
4499 get {
4500 return ((string)(this[this.tableInvoice_Info.PaymentTypeColumn]));
4501 }
4502 set {
4503 this[this.tableInvoice_Info.PaymentTypeColumn] = value;
4504 }
4505 }
4506
4507 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
4508 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
4509 public string Status {
4510 get {
4511 return ((string)(this[this.tableInvoice_Info.StatusColumn]));
4512 }
4513 set {
4514 this[this.tableInvoice_Info.StatusColumn] = value;
4515 }
4516 }
4517
4518 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
4519 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
4520 public CustomerRow CustomerRow {
4521 get {
4522 return ((CustomerRow)(this.GetParentRow(this.Table.ParentRelations["FK_Table_Customer"])));
4523 }
4524 set {
4525 this.SetParentRow(value, this.Table.ParentRelations["FK_Table_Customer"]);
4526 }
4527 }
4528
4529 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
4530 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
4531 public ProductSoldRow[] GetProductSoldRows() {
4532 if ((this.Table.ChildRelations["FK_Table_InvoiceInfo"] == null)) {
4533 return new ProductSoldRow[0];
4534 }
4535 else {
4536 return ((ProductSoldRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Table_InvoiceInfo"])));
4537 }
4538 }
4539 }
4540
4541 /// <summary>
4542 ///Represents strongly named DataRow class.
4543 ///</summary>
4544 public partial class ProductRow : global::System.Data.DataRow {
4545
4546 private ProductDataTable tableProduct;
4547
4548 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
4549 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
4550 internal ProductRow(global::System.Data.DataRowBuilder rb) :
4551 base(rb) {
4552 this.tableProduct = ((ProductDataTable)(this.Table));
4553 }
4554
4555 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
4556 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
4557 public string ProductID {
4558 get {
4559 return ((string)(this[this.tableProduct.ProductIDColumn]));
4560 }
4561 set {
4562 this[this.tableProduct.ProductIDColumn] = value;
4563 }
4564 }
4565
4566 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
4567 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
4568 public string ProductName {
4569 get {
4570 return ((string)(this[this.tableProduct.ProductNameColumn]));
4571 }
4572 set {
4573 this[this.tableProduct.ProductNameColumn] = value;
4574 }
4575 }
4576
4577 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
4578 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
4579 public int CategoryID {
4580 get {
4581 return ((int)(this[this.tableProduct.CategoryIDColumn]));
4582 }
4583 set {
4584 this[this.tableProduct.CategoryIDColumn] = value;
4585 }
4586 }
4587
4588 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
4589 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
4590 public int SubCategoryID {
4591 get {
4592 return ((int)(this[this.tableProduct.SubCategoryIDColumn]));
4593 }
4594 set {
4595 this[this.tableProduct.SubCategoryIDColumn] = value;
4596 }
4597 }
4598
4599 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
4600 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
4601 public string Features {
4602 get {
4603 try {
4604 return ((string)(this[this.tableProduct.FeaturesColumn]));
4605 }
4606 catch (global::System.InvalidCastException e) {
4607 throw new global::System.Data.StrongTypingException("The value for column \'Features\' in table \'Product\' is DBNull.", e);
4608 }
4609 }
4610 set {
4611 this[this.tableProduct.FeaturesColumn] = value;
4612 }
4613 }
4614
4615 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
4616 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
4617 public double Price {
4618 get {
4619 return ((double)(this[this.tableProduct.PriceColumn]));
4620 }
4621 set {
4622 this[this.tableProduct.PriceColumn] = value;
4623 }
4624 }
4625
4626 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
4627 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
4628 public byte[] Image {
4629 get {
4630 return ((byte[])(this[this.tableProduct.ImageColumn]));
4631 }
4632 set {
4633 this[this.tableProduct.ImageColumn] = value;
4634 }
4635 }
4636
4637 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
4638 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
4639 public CategoryRow CategoryRow {
4640 get {
4641 return ((CategoryRow)(this.GetParentRow(this.Table.ParentRelations["FK_Product_ToCategory"])));
4642 }
4643 set {
4644 this.SetParentRow(value, this.Table.ParentRelations["FK_Product_ToCategory"]);
4645 }
4646 }
4647
4648 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
4649 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
4650 public SubCategoryRow SubCategoryRow {
4651 get {
4652 return ((SubCategoryRow)(this.GetParentRow(this.Table.ParentRelations["FK_Product_ToSubCategory"])));
4653 }
4654 set {
4655 this.SetParentRow(value, this.Table.ParentRelations["FK_Product_ToSubCategory"]);
4656 }
4657 }
4658
4659 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
4660 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
4661 public bool IsFeaturesNull() {
4662 return this.IsNull(this.tableProduct.FeaturesColumn);
4663 }
4664
4665 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
4666 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
4667 public void SetFeaturesNull() {
4668 this[this.tableProduct.FeaturesColumn] = global::System.Convert.DBNull;
4669 }
4670
4671 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
4672 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
4673 public ProductSoldRow[] GetProductSoldRows() {
4674 if ((this.Table.ChildRelations["FK_ProductSold_Product"] == null)) {
4675 return new ProductSoldRow[0];
4676 }
4677 else {
4678 return ((ProductSoldRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ProductSold_Product"])));
4679 }
4680 }
4681
4682 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
4683 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
4684 public StockRow[] GetStockRows() {
4685 if ((this.Table.ChildRelations["FK_Stock_Product"] == null)) {
4686 return new StockRow[0];
4687 }
4688 else {
4689 return ((StockRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Stock_Product"])));
4690 }
4691 }
4692 }
4693
4694 /// <summary>
4695 ///Represents strongly named DataRow class.
4696 ///</summary>
4697 public partial class ProductSoldRow : global::System.Data.DataRow {
4698
4699 private ProductSoldDataTable tableProductSold;
4700
4701 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
4702 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
4703 internal ProductSoldRow(global::System.Data.DataRowBuilder rb) :
4704 base(rb) {
4705 this.tableProductSold = ((ProductSoldDataTable)(this.Table));
4706 }
4707
4708 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
4709 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
4710 public int Id {
4711 get {
4712 return ((int)(this[this.tableProductSold.IdColumn]));
4713 }
4714 set {
4715 this[this.tableProductSold.IdColumn] = value;
4716 }
4717 }
4718
4719 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
4720 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
4721 public string InvoiceNo {
4722 get {
4723 return ((string)(this[this.tableProductSold.InvoiceNoColumn]));
4724 }
4725 set {
4726 this[this.tableProductSold.InvoiceNoColumn] = value;
4727 }
4728 }
4729
4730 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
4731 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
4732 public string ProductID {
4733 get {
4734 return ((string)(this[this.tableProductSold.ProductIDColumn]));
4735 }
4736 set {
4737 this[this.tableProductSold.ProductIDColumn] = value;
4738 }
4739 }
4740
4741 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
4742 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
4743 public string ProductName {
4744 get {
4745 return ((string)(this[this.tableProductSold.ProductNameColumn]));
4746 }
4747 set {
4748 this[this.tableProductSold.ProductNameColumn] = value;
4749 }
4750 }
4751
4752 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
4753 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
4754 public double Price {
4755 get {
4756 return ((double)(this[this.tableProductSold.PriceColumn]));
4757 }
4758 set {
4759 this[this.tableProductSold.PriceColumn] = value;
4760 }
4761 }
4762
4763 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
4764 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
4765 public int Quantity {
4766 get {
4767 return ((int)(this[this.tableProductSold.QuantityColumn]));
4768 }
4769 set {
4770 this[this.tableProductSold.QuantityColumn] = value;
4771 }
4772 }
4773
4774 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
4775 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
4776 public double TotalAmount {
4777 get {
4778 return ((double)(this[this.tableProductSold.TotalAmountColumn]));
4779 }
4780 set {
4781 this[this.tableProductSold.TotalAmountColumn] = value;
4782 }
4783 }
4784
4785 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
4786 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
4787 public ProductRow ProductRow {
4788 get {
4789 return ((ProductRow)(this.GetParentRow(this.Table.ParentRelations["FK_ProductSold_Product"])));
4790 }
4791 set {
4792 this.SetParentRow(value, this.Table.ParentRelations["FK_ProductSold_Product"]);
4793 }
4794 }
4795
4796 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
4797 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
4798 public Invoice_InfoRow Invoice_InfoRow {
4799 get {
4800 return ((Invoice_InfoRow)(this.GetParentRow(this.Table.ParentRelations["FK_Table_InvoiceInfo"])));
4801 }
4802 set {
4803 this.SetParentRow(value, this.Table.ParentRelations["FK_Table_InvoiceInfo"]);
4804 }
4805 }
4806 }
4807
4808 /// <summary>
4809 ///Represents strongly named DataRow class.
4810 ///</summary>
4811 public partial class RegistrationRow : global::System.Data.DataRow {
4812
4813 private RegistrationDataTable tableRegistration;
4814
4815 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
4816 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
4817 internal RegistrationRow(global::System.Data.DataRowBuilder rb) :
4818 base(rb) {
4819 this.tableRegistration = ((RegistrationDataTable)(this.Table));
4820 }
4821
4822 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
4823 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
4824 public string UserName {
4825 get {
4826 return ((string)(this[this.tableRegistration.UserNameColumn]));
4827 }
4828 set {
4829 this[this.tableRegistration.UserNameColumn] = value;
4830 }
4831 }
4832
4833 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
4834 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
4835 public string Password {
4836 get {
4837 return ((string)(this[this.tableRegistration.PasswordColumn]));
4838 }
4839 set {
4840 this[this.tableRegistration.PasswordColumn] = value;
4841 }
4842 }
4843
4844 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
4845 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
4846 public string Name {
4847 get {
4848 return ((string)(this[this.tableRegistration.NameColumn]));
4849 }
4850 set {
4851 this[this.tableRegistration.NameColumn] = value;
4852 }
4853 }
4854
4855 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
4856 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
4857 public string ContactNo {
4858 get {
4859 return ((string)(this[this.tableRegistration.ContactNoColumn]));
4860 }
4861 set {
4862 this[this.tableRegistration.ContactNoColumn] = value;
4863 }
4864 }
4865
4866 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
4867 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
4868 public string Email {
4869 get {
4870 try {
4871 return ((string)(this[this.tableRegistration.EmailColumn]));
4872 }
4873 catch (global::System.InvalidCastException e) {
4874 throw new global::System.Data.StrongTypingException("The value for column \'Email\' in table \'Registration\' is DBNull.", e);
4875 }
4876 }
4877 set {
4878 this[this.tableRegistration.EmailColumn] = value;
4879 }
4880 }
4881
4882 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
4883 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
4884 public string JoiningDate {
4885 get {
4886 try {
4887 return ((string)(this[this.tableRegistration.JoiningDateColumn]));
4888 }
4889 catch (global::System.InvalidCastException e) {
4890 throw new global::System.Data.StrongTypingException("The value for column \'JoiningDate\' in table \'Registration\' is DBNull.", e);
4891 }
4892 }
4893 set {
4894 this[this.tableRegistration.JoiningDateColumn] = value;
4895 }
4896 }
4897
4898 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
4899 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
4900 public bool IsEmailNull() {
4901 return this.IsNull(this.tableRegistration.EmailColumn);
4902 }
4903
4904 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
4905 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
4906 public void SetEmailNull() {
4907 this[this.tableRegistration.EmailColumn] = global::System.Convert.DBNull;
4908 }
4909
4910 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
4911 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
4912 public bool IsJoiningDateNull() {
4913 return this.IsNull(this.tableRegistration.JoiningDateColumn);
4914 }
4915
4916 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
4917 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
4918 public void SetJoiningDateNull() {
4919 this[this.tableRegistration.JoiningDateColumn] = global::System.Convert.DBNull;
4920 }
4921 }
4922
4923 /// <summary>
4924 ///Represents strongly named DataRow class.
4925 ///</summary>
4926 public partial class StockRow : global::System.Data.DataRow {
4927
4928 private StockDataTable tableStock;
4929
4930 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
4931 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
4932 internal StockRow(global::System.Data.DataRowBuilder rb) :
4933 base(rb) {
4934 this.tableStock = ((StockDataTable)(this.Table));
4935 }
4936
4937 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
4938 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
4939 public string StockID {
4940 get {
4941 return ((string)(this[this.tableStock.StockIDColumn]));
4942 }
4943 set {
4944 this[this.tableStock.StockIDColumn] = value;
4945 }
4946 }
4947
4948 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
4949 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
4950 public string StockDate {
4951 get {
4952 return ((string)(this[this.tableStock.StockDateColumn]));
4953 }
4954 set {
4955 this[this.tableStock.StockDateColumn] = value;
4956 }
4957 }
4958
4959 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
4960 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
4961 public string ProductID {
4962 get {
4963 return ((string)(this[this.tableStock.ProductIDColumn]));
4964 }
4965 set {
4966 this[this.tableStock.ProductIDColumn] = value;
4967 }
4968 }
4969
4970 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
4971 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
4972 public string SupplierID {
4973 get {
4974 return ((string)(this[this.tableStock.SupplierIDColumn]));
4975 }
4976 set {
4977 this[this.tableStock.SupplierIDColumn] = value;
4978 }
4979 }
4980
4981 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
4982 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
4983 public int Quantity {
4984 get {
4985 return ((int)(this[this.tableStock.QuantityColumn]));
4986 }
4987 set {
4988 this[this.tableStock.QuantityColumn] = value;
4989 }
4990 }
4991
4992 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
4993 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
4994 public ProductRow ProductRow {
4995 get {
4996 return ((ProductRow)(this.GetParentRow(this.Table.ParentRelations["FK_Stock_Product"])));
4997 }
4998 set {
4999 this.SetParentRow(value, this.Table.ParentRelations["FK_Stock_Product"]);
5000 }
5001 }
5002
5003 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
5004 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
5005 public SupplierRow SupplierRow {
5006 get {
5007 return ((SupplierRow)(this.GetParentRow(this.Table.ParentRelations["FK_Stock_Supplier"])));
5008 }
5009 set {
5010 this.SetParentRow(value, this.Table.ParentRelations["FK_Stock_Supplier"]);
5011 }
5012 }
5013 }
5014
5015 /// <summary>
5016 ///Represents strongly named DataRow class.
5017 ///</summary>
5018 public partial class SubCategoryRow : global::System.Data.DataRow {
5019
5020 private SubCategoryDataTable tableSubCategory;
5021
5022 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
5023 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
5024 internal SubCategoryRow(global::System.Data.DataRowBuilder rb) :
5025 base(rb) {
5026 this.tableSubCategory = ((SubCategoryDataTable)(this.Table));
5027 }
5028
5029 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
5030 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
5031 public int ID {
5032 get {
5033 return ((int)(this[this.tableSubCategory.IDColumn]));
5034 }
5035 set {
5036 this[this.tableSubCategory.IDColumn] = value;
5037 }
5038 }
5039
5040 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
5041 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
5042 public string SubCategoryName {
5043 get {
5044 return ((string)(this[this.tableSubCategory.SubCategoryNameColumn]));
5045 }
5046 set {
5047 this[this.tableSubCategory.SubCategoryNameColumn] = value;
5048 }
5049 }
5050
5051 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
5052 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
5053 public int CategoryID {
5054 get {
5055 return ((int)(this[this.tableSubCategory.CategoryIDColumn]));
5056 }
5057 set {
5058 this[this.tableSubCategory.CategoryIDColumn] = value;
5059 }
5060 }
5061
5062 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
5063 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
5064 public CategoryRow CategoryRow {
5065 get {
5066 return ((CategoryRow)(this.GetParentRow(this.Table.ParentRelations["FK_SubCategory_ToCategory"])));
5067 }
5068 set {
5069 this.SetParentRow(value, this.Table.ParentRelations["FK_SubCategory_ToCategory"]);
5070 }
5071 }
5072
5073 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
5074 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
5075 public ProductRow[] GetProductRows() {
5076 if ((this.Table.ChildRelations["FK_Product_ToSubCategory"] == null)) {
5077 return new ProductRow[0];
5078 }
5079 else {
5080 return ((ProductRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Product_ToSubCategory"])));
5081 }
5082 }
5083 }
5084
5085 /// <summary>
5086 ///Represents strongly named DataRow class.
5087 ///</summary>
5088 public partial class SupplierRow : global::System.Data.DataRow {
5089
5090 private SupplierDataTable tableSupplier;
5091
5092 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
5093 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
5094 internal SupplierRow(global::System.Data.DataRowBuilder rb) :
5095 base(rb) {
5096 this.tableSupplier = ((SupplierDataTable)(this.Table));
5097 }
5098
5099 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
5100 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
5101 public string SupplierId {
5102 get {
5103 return ((string)(this[this.tableSupplier.SupplierIdColumn]));
5104 }
5105 set {
5106 this[this.tableSupplier.SupplierIdColumn] = value;
5107 }
5108 }
5109
5110 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
5111 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
5112 public string SupplierName {
5113 get {
5114 return ((string)(this[this.tableSupplier.SupplierNameColumn]));
5115 }
5116 set {
5117 this[this.tableSupplier.SupplierNameColumn] = value;
5118 }
5119 }
5120
5121 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
5122 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
5123 public string Address {
5124 get {
5125 return ((string)(this[this.tableSupplier.AddressColumn]));
5126 }
5127 set {
5128 this[this.tableSupplier.AddressColumn] = value;
5129 }
5130 }
5131
5132 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
5133 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
5134 public string City {
5135 get {
5136 return ((string)(this[this.tableSupplier.CityColumn]));
5137 }
5138 set {
5139 this[this.tableSupplier.CityColumn] = value;
5140 }
5141 }
5142
5143 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
5144 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
5145 public string ContactNo {
5146 get {
5147 return ((string)(this[this.tableSupplier.ContactNoColumn]));
5148 }
5149 set {
5150 this[this.tableSupplier.ContactNoColumn] = value;
5151 }
5152 }
5153
5154 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
5155 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
5156 public string ContactNo1 {
5157 get {
5158 try {
5159 return ((string)(this[this.tableSupplier.ContactNo1Column]));
5160 }
5161 catch (global::System.InvalidCastException e) {
5162 throw new global::System.Data.StrongTypingException("The value for column \'ContactNo1\' in table \'Supplier\' is DBNull.", e);
5163 }
5164 }
5165 set {
5166 this[this.tableSupplier.ContactNo1Column] = value;
5167 }
5168 }
5169
5170 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
5171 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
5172 public string Email {
5173 get {
5174 try {
5175 return ((string)(this[this.tableSupplier.EmailColumn]));
5176 }
5177 catch (global::System.InvalidCastException e) {
5178 throw new global::System.Data.StrongTypingException("The value for column \'Email\' in table \'Supplier\' is DBNull.", e);
5179 }
5180 }
5181 set {
5182 this[this.tableSupplier.EmailColumn] = value;
5183 }
5184 }
5185
5186 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
5187 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
5188 public string Notes {
5189 get {
5190 try {
5191 return ((string)(this[this.tableSupplier.NotesColumn]));
5192 }
5193 catch (global::System.InvalidCastException e) {
5194 throw new global::System.Data.StrongTypingException("The value for column \'Notes\' in table \'Supplier\' is DBNull.", e);
5195 }
5196 }
5197 set {
5198 this[this.tableSupplier.NotesColumn] = value;
5199 }
5200 }
5201
5202 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
5203 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
5204 public bool IsContactNo1Null() {
5205 return this.IsNull(this.tableSupplier.ContactNo1Column);
5206 }
5207
5208 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
5209 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
5210 public void SetContactNo1Null() {
5211 this[this.tableSupplier.ContactNo1Column] = global::System.Convert.DBNull;
5212 }
5213
5214 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
5215 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
5216 public bool IsEmailNull() {
5217 return this.IsNull(this.tableSupplier.EmailColumn);
5218 }
5219
5220 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
5221 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
5222 public void SetEmailNull() {
5223 this[this.tableSupplier.EmailColumn] = global::System.Convert.DBNull;
5224 }
5225
5226 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
5227 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
5228 public bool IsNotesNull() {
5229 return this.IsNull(this.tableSupplier.NotesColumn);
5230 }
5231
5232 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
5233 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
5234 public void SetNotesNull() {
5235 this[this.tableSupplier.NotesColumn] = global::System.Convert.DBNull;
5236 }
5237
5238 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
5239 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
5240 public StockRow[] GetStockRows() {
5241 if ((this.Table.ChildRelations["FK_Stock_Supplier"] == null)) {
5242 return new StockRow[0];
5243 }
5244 else {
5245 return ((StockRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Stock_Supplier"])));
5246 }
5247 }
5248 }
5249
5250 /// <summary>
5251 ///Represents strongly named DataRow class.
5252 ///</summary>
5253 public partial class Temp_StockRow : global::System.Data.DataRow {
5254
5255 private Temp_StockDataTable tableTemp_Stock;
5256
5257 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
5258 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
5259 internal Temp_StockRow(global::System.Data.DataRowBuilder rb) :
5260 base(rb) {
5261 this.tableTemp_Stock = ((Temp_StockDataTable)(this.Table));
5262 }
5263
5264 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
5265 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
5266 public int ID {
5267 get {
5268 return ((int)(this[this.tableTemp_Stock.IDColumn]));
5269 }
5270 set {
5271 this[this.tableTemp_Stock.IDColumn] = value;
5272 }
5273 }
5274
5275 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
5276 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
5277 public string ProductID {
5278 get {
5279 return ((string)(this[this.tableTemp_Stock.ProductIDColumn]));
5280 }
5281 set {
5282 this[this.tableTemp_Stock.ProductIDColumn] = value;
5283 }
5284 }
5285
5286 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
5287 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
5288 public int Quantity {
5289 get {
5290 return ((int)(this[this.tableTemp_Stock.QuantityColumn]));
5291 }
5292 set {
5293 this[this.tableTemp_Stock.QuantityColumn] = value;
5294 }
5295 }
5296 }
5297
5298 /// <summary>
5299 ///Row event argument class
5300 ///</summary>
5301 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
5302 public class CategoryRowChangeEvent : global::System.EventArgs {
5303
5304 private CategoryRow eventRow;
5305
5306 private global::System.Data.DataRowAction eventAction;
5307
5308 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
5309 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
5310 public CategoryRowChangeEvent(CategoryRow row, global::System.Data.DataRowAction action) {
5311 this.eventRow = row;
5312 this.eventAction = action;
5313 }
5314
5315 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
5316 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
5317 public CategoryRow Row {
5318 get {
5319 return this.eventRow;
5320 }
5321 }
5322
5323 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
5324 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
5325 public global::System.Data.DataRowAction Action {
5326 get {
5327 return this.eventAction;
5328 }
5329 }
5330 }
5331
5332 /// <summary>
5333 ///Row event argument class
5334 ///</summary>
5335 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
5336 public class CustomerRowChangeEvent : global::System.EventArgs {
5337
5338 private CustomerRow eventRow;
5339
5340 private global::System.Data.DataRowAction eventAction;
5341
5342 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
5343 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
5344 public CustomerRowChangeEvent(CustomerRow row, global::System.Data.DataRowAction action) {
5345 this.eventRow = row;
5346 this.eventAction = action;
5347 }
5348
5349 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
5350 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
5351 public CustomerRow Row {
5352 get {
5353 return this.eventRow;
5354 }
5355 }
5356
5357 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
5358 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
5359 public global::System.Data.DataRowAction Action {
5360 get {
5361 return this.eventAction;
5362 }
5363 }
5364 }
5365
5366 /// <summary>
5367 ///Row event argument class
5368 ///</summary>
5369 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
5370 public class Invoice_InfoRowChangeEvent : global::System.EventArgs {
5371
5372 private Invoice_InfoRow eventRow;
5373
5374 private global::System.Data.DataRowAction eventAction;
5375
5376 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
5377 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
5378 public Invoice_InfoRowChangeEvent(Invoice_InfoRow row, global::System.Data.DataRowAction action) {
5379 this.eventRow = row;
5380 this.eventAction = action;
5381 }
5382
5383 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
5384 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
5385 public Invoice_InfoRow Row {
5386 get {
5387 return this.eventRow;
5388 }
5389 }
5390
5391 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
5392 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
5393 public global::System.Data.DataRowAction Action {
5394 get {
5395 return this.eventAction;
5396 }
5397 }
5398 }
5399
5400 /// <summary>
5401 ///Row event argument class
5402 ///</summary>
5403 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
5404 public class ProductRowChangeEvent : global::System.EventArgs {
5405
5406 private ProductRow eventRow;
5407
5408 private global::System.Data.DataRowAction eventAction;
5409
5410 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
5411 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
5412 public ProductRowChangeEvent(ProductRow row, global::System.Data.DataRowAction action) {
5413 this.eventRow = row;
5414 this.eventAction = action;
5415 }
5416
5417 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
5418 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
5419 public ProductRow Row {
5420 get {
5421 return this.eventRow;
5422 }
5423 }
5424
5425 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
5426 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
5427 public global::System.Data.DataRowAction Action {
5428 get {
5429 return this.eventAction;
5430 }
5431 }
5432 }
5433
5434 /// <summary>
5435 ///Row event argument class
5436 ///</summary>
5437 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
5438 public class ProductSoldRowChangeEvent : global::System.EventArgs {
5439
5440 private ProductSoldRow eventRow;
5441
5442 private global::System.Data.DataRowAction eventAction;
5443
5444 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
5445 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
5446 public ProductSoldRowChangeEvent(ProductSoldRow row, global::System.Data.DataRowAction action) {
5447 this.eventRow = row;
5448 this.eventAction = action;
5449 }
5450
5451 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
5452 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
5453 public ProductSoldRow Row {
5454 get {
5455 return this.eventRow;
5456 }
5457 }
5458
5459 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
5460 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
5461 public global::System.Data.DataRowAction Action {
5462 get {
5463 return this.eventAction;
5464 }
5465 }
5466 }
5467
5468 /// <summary>
5469 ///Row event argument class
5470 ///</summary>
5471 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
5472 public class RegistrationRowChangeEvent : global::System.EventArgs {
5473
5474 private RegistrationRow eventRow;
5475
5476 private global::System.Data.DataRowAction eventAction;
5477
5478 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
5479 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
5480 public RegistrationRowChangeEvent(RegistrationRow row, global::System.Data.DataRowAction action) {
5481 this.eventRow = row;
5482 this.eventAction = action;
5483 }
5484
5485 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
5486 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
5487 public RegistrationRow Row {
5488 get {
5489 return this.eventRow;
5490 }
5491 }
5492
5493 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
5494 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
5495 public global::System.Data.DataRowAction Action {
5496 get {
5497 return this.eventAction;
5498 }
5499 }
5500 }
5501
5502 /// <summary>
5503 ///Row event argument class
5504 ///</summary>
5505 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
5506 public class StockRowChangeEvent : global::System.EventArgs {
5507
5508 private StockRow eventRow;
5509
5510 private global::System.Data.DataRowAction eventAction;
5511
5512 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
5513 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
5514 public StockRowChangeEvent(StockRow row, global::System.Data.DataRowAction action) {
5515 this.eventRow = row;
5516 this.eventAction = action;
5517 }
5518
5519 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
5520 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
5521 public StockRow Row {
5522 get {
5523 return this.eventRow;
5524 }
5525 }
5526
5527 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
5528 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
5529 public global::System.Data.DataRowAction Action {
5530 get {
5531 return this.eventAction;
5532 }
5533 }
5534 }
5535
5536 /// <summary>
5537 ///Row event argument class
5538 ///</summary>
5539 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
5540 public class SubCategoryRowChangeEvent : global::System.EventArgs {
5541
5542 private SubCategoryRow eventRow;
5543
5544 private global::System.Data.DataRowAction eventAction;
5545
5546 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
5547 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
5548 public SubCategoryRowChangeEvent(SubCategoryRow row, global::System.Data.DataRowAction action) {
5549 this.eventRow = row;
5550 this.eventAction = action;
5551 }
5552
5553 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
5554 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
5555 public SubCategoryRow Row {
5556 get {
5557 return this.eventRow;
5558 }
5559 }
5560
5561 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
5562 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
5563 public global::System.Data.DataRowAction Action {
5564 get {
5565 return this.eventAction;
5566 }
5567 }
5568 }
5569
5570 /// <summary>
5571 ///Row event argument class
5572 ///</summary>
5573 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
5574 public class SupplierRowChangeEvent : global::System.EventArgs {
5575
5576 private SupplierRow eventRow;
5577
5578 private global::System.Data.DataRowAction eventAction;
5579
5580 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
5581 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
5582 public SupplierRowChangeEvent(SupplierRow row, global::System.Data.DataRowAction action) {
5583 this.eventRow = row;
5584 this.eventAction = action;
5585 }
5586
5587 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
5588 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
5589 public SupplierRow Row {
5590 get {
5591 return this.eventRow;
5592 }
5593 }
5594
5595 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
5596 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
5597 public global::System.Data.DataRowAction Action {
5598 get {
5599 return this.eventAction;
5600 }
5601 }
5602 }
5603
5604 /// <summary>
5605 ///Row event argument class
5606 ///</summary>
5607 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
5608 public class Temp_StockRowChangeEvent : global::System.EventArgs {
5609
5610 private Temp_StockRow eventRow;
5611
5612 private global::System.Data.DataRowAction eventAction;
5613
5614 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
5615 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
5616 public Temp_StockRowChangeEvent(Temp_StockRow row, global::System.Data.DataRowAction action) {
5617 this.eventRow = row;
5618 this.eventAction = action;
5619 }
5620
5621 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
5622 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
5623 public Temp_StockRow Row {
5624 get {
5625 return this.eventRow;
5626 }
5627 }
5628
5629 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
5630 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
5631 public global::System.Data.DataRowAction Action {
5632 get {
5633 return this.eventAction;
5634 }
5635 }
5636 }
5637 }
5638 }
5639 namespace WarehouseManagementSystem.POS_DBDataSetTableAdapters {
5640
5641
5642 /// <summary>
5643 ///Represents the connection and commands used to retrieve and save data.
5644 ///</summary>
5645 [global::System.ComponentModel.DesignerCategoryAttribute("code")]
5646 [global::System.ComponentModel.ToolboxItem(true)]
5647 [global::System.ComponentModel.DataObjectAttribute(true)]
5648 [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
5649 ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
5650 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
5651 public partial class CategoryTableAdapter : global::System.ComponentModel.Component {
5652
5653 private global::System.Data.SqlClient.SqlDataAdapter _adapter;
5654
5655 private global::System.Data.SqlClient.SqlConnection _connection;
5656
5657 private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
5658
5659 private bool _clearBeforeFill;
5660
5661 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
5662 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
5663 public CategoryTableAdapter() {
5664 this.ClearBeforeFill = true;
5665 }
5666
5667 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
5668 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
5669 private global::System.Data.SqlClient.SqlDataAdapter Adapter {
5670 get {
5671 if ((this._adapter == null)) {
5672 this.InitAdapter();
5673 }
5674 return this._adapter;
5675 }
5676 }
5677
5678 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
5679 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
5680 internal global::System.Data.SqlClient.SqlConnection Connection {
5681 get {
5682 if ((this._connection == null)) {
5683 this.InitConnection();
5684 }
5685 return this._connection;
5686 }
5687 set {
5688 this._connection = value;
5689 if ((this.Adapter.InsertCommand != null)) {
5690 this.Adapter.InsertCommand.Connection = value;
5691 }
5692 if ((this.Adapter.DeleteCommand != null)) {
5693 this.Adapter.DeleteCommand.Connection = value;
5694 }
5695 if ((this.Adapter.UpdateCommand != null)) {
5696 this.Adapter.UpdateCommand.Connection = value;
5697 }
5698 for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
5699 if ((this.CommandCollection[i] != null)) {
5700 ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
5701 }
5702 }
5703 }
5704 }
5705
5706 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
5707 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
5708 protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
5709 get {
5710 if ((this._commandCollection == null)) {
5711 this.InitCommandCollection();
5712 }
5713 return this._commandCollection;
5714 }
5715 }
5716
5717 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
5718 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
5719 public bool ClearBeforeFill {
5720 get {
5721 return this._clearBeforeFill;
5722 }
5723 set {
5724 this._clearBeforeFill = value;
5725 }
5726 }
5727
5728 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
5729 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
5730 private void InitAdapter() {
5731 this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
5732 global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
5733 tableMapping.SourceTable = "Table";
5734 tableMapping.DataSetTable = "Category";
5735 tableMapping.ColumnMappings.Add("ID", "ID");
5736 tableMapping.ColumnMappings.Add("CategoryName", "CategoryName");
5737 this._adapter.TableMappings.Add(tableMapping);
5738 this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
5739 this._adapter.DeleteCommand.Connection = this.Connection;
5740 this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Category] WHERE (([ID] = @Original_ID) AND ([CategoryName] = @" +
5741 "Original_CategoryName))";
5742 this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
5743 this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
5744 this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CategoryName", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CategoryName", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
5745 this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
5746 this._adapter.InsertCommand.Connection = this.Connection;
5747 this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Category] ([CategoryName]) VALUES (@CategoryName);\r\nSELECT ID," +
5748 " CategoryName FROM Category WHERE (ID = SCOPE_IDENTITY())";
5749 this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
5750 this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CategoryName", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CategoryName", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
5751 this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
5752 this._adapter.UpdateCommand.Connection = this.Connection;
5753 this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[Category] SET [CategoryName] = @CategoryName WHERE (([ID] = @Origin" +
5754 "al_ID) AND ([CategoryName] = @Original_CategoryName));\r\nSELECT ID, CategoryName " +
5755 "FROM Category WHERE (ID = @ID)";
5756 this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
5757 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CategoryName", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CategoryName", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
5758 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
5759 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CategoryName", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CategoryName", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
5760 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
5761 }
5762
5763 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
5764 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
5765 private void InitConnection() {
5766 this._connection = new global::System.Data.SqlClient.SqlConnection();
5767 this._connection.ConnectionString = global::WarehouseManagementSystem.Properties.Settings.Default.POS_DBConnectionString;
5768 }
5769
5770 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
5771 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
5772 private void InitCommandCollection() {
5773 this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
5774 this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
5775 this._commandCollection[0].Connection = this.Connection;
5776 this._commandCollection[0].CommandText = "SELECT ID, CategoryName FROM dbo.Category";
5777 this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
5778 }
5779
5780 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
5781 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
5782 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
5783 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
5784 public virtual int Fill(POS_DBDataSet.CategoryDataTable dataTable) {
5785 this.Adapter.SelectCommand = this.CommandCollection[0];
5786 if ((this.ClearBeforeFill == true)) {
5787 dataTable.Clear();
5788 }
5789 int returnValue = this.Adapter.Fill(dataTable);
5790 return returnValue;
5791 }
5792
5793 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
5794 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
5795 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
5796 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
5797 public virtual POS_DBDataSet.CategoryDataTable GetData() {
5798 this.Adapter.SelectCommand = this.CommandCollection[0];
5799 POS_DBDataSet.CategoryDataTable dataTable = new POS_DBDataSet.CategoryDataTable();
5800 this.Adapter.Fill(dataTable);
5801 return dataTable;
5802 }
5803
5804 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
5805 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
5806 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
5807 public virtual int Update(POS_DBDataSet.CategoryDataTable dataTable) {
5808 return this.Adapter.Update(dataTable);
5809 }
5810
5811 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
5812 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
5813 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
5814 public virtual int Update(POS_DBDataSet dataSet) {
5815 return this.Adapter.Update(dataSet, "Category");
5816 }
5817
5818 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
5819 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
5820 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
5821 public virtual int Update(global::System.Data.DataRow dataRow) {
5822 return this.Adapter.Update(new global::System.Data.DataRow[] {
5823 dataRow});
5824 }
5825
5826 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
5827 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
5828 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
5829 public virtual int Update(global::System.Data.DataRow[] dataRows) {
5830 return this.Adapter.Update(dataRows);
5831 }
5832
5833 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
5834 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
5835 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
5836 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
5837 public virtual int Delete(int Original_ID, string Original_CategoryName) {
5838 this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
5839 if ((Original_CategoryName == null)) {
5840 throw new global::System.ArgumentNullException("Original_CategoryName");
5841 }
5842 else {
5843 this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_CategoryName));
5844 }
5845 global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
5846 if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
5847 != global::System.Data.ConnectionState.Open)) {
5848 this.Adapter.DeleteCommand.Connection.Open();
5849 }
5850 try {
5851 int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
5852 return returnValue;
5853 }
5854 finally {
5855 if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
5856 this.Adapter.DeleteCommand.Connection.Close();
5857 }
5858 }
5859 }
5860
5861 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
5862 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
5863 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
5864 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
5865 public virtual int Insert(string CategoryName) {
5866 if ((CategoryName == null)) {
5867 throw new global::System.ArgumentNullException("CategoryName");
5868 }
5869 else {
5870 this.Adapter.InsertCommand.Parameters[0].Value = ((string)(CategoryName));
5871 }
5872 global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
5873 if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
5874 != global::System.Data.ConnectionState.Open)) {
5875 this.Adapter.InsertCommand.Connection.Open();
5876 }
5877 try {
5878 int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
5879 return returnValue;
5880 }
5881 finally {
5882 if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
5883 this.Adapter.InsertCommand.Connection.Close();
5884 }
5885 }
5886 }
5887
5888 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
5889 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
5890 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
5891 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
5892 public virtual int Update(string CategoryName, int Original_ID, string Original_CategoryName, int ID) {
5893 if ((CategoryName == null)) {
5894 throw new global::System.ArgumentNullException("CategoryName");
5895 }
5896 else {
5897 this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(CategoryName));
5898 }
5899 this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(Original_ID));
5900 if ((Original_CategoryName == null)) {
5901 throw new global::System.ArgumentNullException("Original_CategoryName");
5902 }
5903 else {
5904 this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Original_CategoryName));
5905 }
5906 this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(ID));
5907 global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
5908 if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
5909 != global::System.Data.ConnectionState.Open)) {
5910 this.Adapter.UpdateCommand.Connection.Open();
5911 }
5912 try {
5913 int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
5914 return returnValue;
5915 }
5916 finally {
5917 if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
5918 this.Adapter.UpdateCommand.Connection.Close();
5919 }
5920 }
5921 }
5922
5923 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
5924 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
5925 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
5926 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
5927 public virtual int Update(string CategoryName, int Original_ID, string Original_CategoryName) {
5928 return this.Update(CategoryName, Original_ID, Original_CategoryName, Original_ID);
5929 }
5930 }
5931
5932 /// <summary>
5933 ///Represents the connection and commands used to retrieve and save data.
5934 ///</summary>
5935 [global::System.ComponentModel.DesignerCategoryAttribute("code")]
5936 [global::System.ComponentModel.ToolboxItem(true)]
5937 [global::System.ComponentModel.DataObjectAttribute(true)]
5938 [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
5939 ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
5940 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
5941 public partial class CustomerTableAdapter : global::System.ComponentModel.Component {
5942
5943 private global::System.Data.SqlClient.SqlDataAdapter _adapter;
5944
5945 private global::System.Data.SqlClient.SqlConnection _connection;
5946
5947 private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
5948
5949 private bool _clearBeforeFill;
5950
5951 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
5952 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
5953 public CustomerTableAdapter() {
5954 this.ClearBeforeFill = true;
5955 }
5956
5957 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
5958 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
5959 private global::System.Data.SqlClient.SqlDataAdapter Adapter {
5960 get {
5961 if ((this._adapter == null)) {
5962 this.InitAdapter();
5963 }
5964 return this._adapter;
5965 }
5966 }
5967
5968 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
5969 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
5970 internal global::System.Data.SqlClient.SqlConnection Connection {
5971 get {
5972 if ((this._connection == null)) {
5973 this.InitConnection();
5974 }
5975 return this._connection;
5976 }
5977 set {
5978 this._connection = value;
5979 if ((this.Adapter.InsertCommand != null)) {
5980 this.Adapter.InsertCommand.Connection = value;
5981 }
5982 if ((this.Adapter.DeleteCommand != null)) {
5983 this.Adapter.DeleteCommand.Connection = value;
5984 }
5985 if ((this.Adapter.UpdateCommand != null)) {
5986 this.Adapter.UpdateCommand.Connection = value;
5987 }
5988 for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
5989 if ((this.CommandCollection[i] != null)) {
5990 ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
5991 }
5992 }
5993 }
5994 }
5995
5996 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
5997 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
5998 protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
5999 get {
6000 if ((this._commandCollection == null)) {
6001 this.InitCommandCollection();
6002 }
6003 return this._commandCollection;
6004 }
6005 }
6006
6007 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
6008 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
6009 public bool ClearBeforeFill {
6010 get {
6011 return this._clearBeforeFill;
6012 }
6013 set {
6014 this._clearBeforeFill = value;
6015 }
6016 }
6017
6018 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
6019 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
6020 private void InitAdapter() {
6021 this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
6022 global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
6023 tableMapping.SourceTable = "Table";
6024 tableMapping.DataSetTable = "Customer";
6025 tableMapping.ColumnMappings.Add("CustomerId", "CustomerId");
6026 tableMapping.ColumnMappings.Add("CustomerName", "CustomerName");
6027 tableMapping.ColumnMappings.Add("Address", "Address");
6028 tableMapping.ColumnMappings.Add("City", "City");
6029 tableMapping.ColumnMappings.Add("ContactNo", "ContactNo");
6030 tableMapping.ColumnMappings.Add("ContactNo1", "ContactNo1");
6031 tableMapping.ColumnMappings.Add("Email", "Email");
6032 tableMapping.ColumnMappings.Add("Notes", "Notes");
6033 this._adapter.TableMappings.Add(tableMapping);
6034 this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
6035 this._adapter.DeleteCommand.Connection = this.Connection;
6036 this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Customer] WHERE (([CustomerId] = @Original_CustomerId) AND ([CustomerName] = @Original_CustomerName) AND ([City] = @Original_City) AND ([ContactNo] = @Original_ContactNo) AND ((@IsNull_ContactNo1 = 1 AND [ContactNo1] IS NULL) OR ([ContactNo1] = @Original_ContactNo1)) AND ((@IsNull_Email = 1 AND [Email] IS NULL) OR ([Email] = @Original_Email)))";
6037 this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
6038 this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CustomerId", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CustomerId", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
6039 this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CustomerName", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CustomerName", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
6040 this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_City", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "City", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
6041 this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ContactNo", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ContactNo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
6042 this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ContactNo1", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ContactNo1", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
6043 this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ContactNo1", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ContactNo1", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
6044 this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Email", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Email", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
6045 this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Email", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Email", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
6046 this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
6047 this._adapter.InsertCommand.Connection = this.Connection;
6048 this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Customer] ([CustomerId], [CustomerName], [Address], [City], [ContactNo], [ContactNo1], [Email], [Notes]) VALUES (@CustomerId, @CustomerName, @Address, @City, @ContactNo, @ContactNo1, @Email, @Notes);
6049 SELECT CustomerId, CustomerName, Address, City, ContactNo, ContactNo1, Email, Notes FROM Customer WHERE (CustomerId = @CustomerId)";
6050 this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
6051 this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CustomerId", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CustomerId", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
6052 this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CustomerName", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CustomerName", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
6053 this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Address", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Address", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
6054 this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@City", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "City", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
6055 this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ContactNo", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ContactNo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
6056 this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ContactNo1", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ContactNo1", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
6057 this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Email", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Email", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
6058 this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Notes", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Notes", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
6059 this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
6060 this._adapter.UpdateCommand.Connection = this.Connection;
6061 this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Customer] SET [CustomerId] = @CustomerId, [CustomerName] = @CustomerName, [Address] = @Address, [City] = @City, [ContactNo] = @ContactNo, [ContactNo1] = @ContactNo1, [Email] = @Email, [Notes] = @Notes WHERE (([CustomerId] = @Original_CustomerId) AND ([CustomerName] = @Original_CustomerName) AND ([City] = @Original_City) AND ([ContactNo] = @Original_ContactNo) AND ((@IsNull_ContactNo1 = 1 AND [ContactNo1] IS NULL) OR ([ContactNo1] = @Original_ContactNo1)) AND ((@IsNull_Email = 1 AND [Email] IS NULL) OR ([Email] = @Original_Email)));
6062 SELECT CustomerId, CustomerName, Address, City, ContactNo, ContactNo1, Email, Notes FROM Customer WHERE (CustomerId = @CustomerId)";
6063 this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
6064 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CustomerId", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CustomerId", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
6065 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CustomerName", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CustomerName", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
6066 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Address", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Address", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
6067 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@City", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "City", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
6068 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ContactNo", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ContactNo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
6069 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ContactNo1", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ContactNo1", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
6070 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Email", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Email", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
6071 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Notes", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Notes", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
6072 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CustomerId", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CustomerId", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
6073 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CustomerName", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CustomerName", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
6074 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_City", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "City", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
6075 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ContactNo", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ContactNo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
6076 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ContactNo1", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ContactNo1", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
6077 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ContactNo1", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ContactNo1", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
6078 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Email", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Email", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
6079 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Email", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Email", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
6080 }
6081
6082 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
6083 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
6084 private void InitConnection() {
6085 this._connection = new global::System.Data.SqlClient.SqlConnection();
6086 this._connection.ConnectionString = global::WarehouseManagementSystem.Properties.Settings.Default.POS_DBConnectionString;
6087 }
6088
6089 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
6090 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
6091 private void InitCommandCollection() {
6092 this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
6093 this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
6094 this._commandCollection[0].Connection = this.Connection;
6095 this._commandCollection[0].CommandText = "SELECT CustomerId, CustomerName, Address, City, ContactNo, ContactNo1, Email, Not" +
6096 "es FROM dbo.Customer";
6097 this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
6098 }
6099
6100 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
6101 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
6102 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
6103 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
6104 public virtual int Fill(POS_DBDataSet.CustomerDataTable dataTable) {
6105 this.Adapter.SelectCommand = this.CommandCollection[0];
6106 if ((this.ClearBeforeFill == true)) {
6107 dataTable.Clear();
6108 }
6109 int returnValue = this.Adapter.Fill(dataTable);
6110 return returnValue;
6111 }
6112
6113 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
6114 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
6115 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
6116 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
6117 public virtual POS_DBDataSet.CustomerDataTable GetData() {
6118 this.Adapter.SelectCommand = this.CommandCollection[0];
6119 POS_DBDataSet.CustomerDataTable dataTable = new POS_DBDataSet.CustomerDataTable();
6120 this.Adapter.Fill(dataTable);
6121 return dataTable;
6122 }
6123
6124 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
6125 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
6126 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
6127 public virtual int Update(POS_DBDataSet.CustomerDataTable dataTable) {
6128 return this.Adapter.Update(dataTable);
6129 }
6130
6131 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
6132 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
6133 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
6134 public virtual int Update(POS_DBDataSet dataSet) {
6135 return this.Adapter.Update(dataSet, "Customer");
6136 }
6137
6138 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
6139 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
6140 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
6141 public virtual int Update(global::System.Data.DataRow dataRow) {
6142 return this.Adapter.Update(new global::System.Data.DataRow[] {
6143 dataRow});
6144 }
6145
6146 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
6147 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
6148 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
6149 public virtual int Update(global::System.Data.DataRow[] dataRows) {
6150 return this.Adapter.Update(dataRows);
6151 }
6152
6153 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
6154 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
6155 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
6156 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
6157 public virtual int Delete(string Original_CustomerId, string Original_CustomerName, string Original_City, string Original_ContactNo, string Original_ContactNo1, string Original_Email) {
6158 if ((Original_CustomerId == null)) {
6159 throw new global::System.ArgumentNullException("Original_CustomerId");
6160 }
6161 else {
6162 this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_CustomerId));
6163 }
6164 if ((Original_CustomerName == null)) {
6165 throw new global::System.ArgumentNullException("Original_CustomerName");
6166 }
6167 else {
6168 this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_CustomerName));
6169 }
6170 if ((Original_City == null)) {
6171 throw new global::System.ArgumentNullException("Original_City");
6172 }
6173 else {
6174 this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_City));
6175 }
6176 if ((Original_ContactNo == null)) {
6177 throw new global::System.ArgumentNullException("Original_ContactNo");
6178 }
6179 else {
6180 this.Adapter.DeleteCommand.Parameters[3].Value = ((string)(Original_ContactNo));
6181 }
6182 if ((Original_ContactNo1 == null)) {
6183 this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(1));
6184 this.Adapter.DeleteCommand.Parameters[5].Value = global::System.DBNull.Value;
6185 }
6186 else {
6187 this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(0));
6188 this.Adapter.DeleteCommand.Parameters[5].Value = ((string)(Original_ContactNo1));
6189 }
6190 if ((Original_Email == null)) {
6191 this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(1));
6192 this.Adapter.DeleteCommand.Parameters[7].Value = global::System.DBNull.Value;
6193 }
6194 else {
6195 this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(0));
6196 this.Adapter.DeleteCommand.Parameters[7].Value = ((string)(Original_Email));
6197 }
6198 global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
6199 if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
6200 != global::System.Data.ConnectionState.Open)) {
6201 this.Adapter.DeleteCommand.Connection.Open();
6202 }
6203 try {
6204 int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
6205 return returnValue;
6206 }
6207 finally {
6208 if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
6209 this.Adapter.DeleteCommand.Connection.Close();
6210 }
6211 }
6212 }
6213
6214 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
6215 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
6216 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
6217 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
6218 public virtual int Insert(string CustomerId, string CustomerName, string Address, string City, string ContactNo, string ContactNo1, string Email, string Notes) {
6219 if ((CustomerId == null)) {
6220 throw new global::System.ArgumentNullException("CustomerId");
6221 }
6222 else {
6223 this.Adapter.InsertCommand.Parameters[0].Value = ((string)(CustomerId));
6224 }
6225 if ((CustomerName == null)) {
6226 throw new global::System.ArgumentNullException("CustomerName");
6227 }
6228 else {
6229 this.Adapter.InsertCommand.Parameters[1].Value = ((string)(CustomerName));
6230 }
6231 if ((Address == null)) {
6232 throw new global::System.ArgumentNullException("Address");
6233 }
6234 else {
6235 this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Address));
6236 }
6237 if ((City == null)) {
6238 throw new global::System.ArgumentNullException("City");
6239 }
6240 else {
6241 this.Adapter.InsertCommand.Parameters[3].Value = ((string)(City));
6242 }
6243 if ((ContactNo == null)) {
6244 throw new global::System.ArgumentNullException("ContactNo");
6245 }
6246 else {
6247 this.Adapter.InsertCommand.Parameters[4].Value = ((string)(ContactNo));
6248 }
6249 if ((ContactNo1 == null)) {
6250 this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
6251 }
6252 else {
6253 this.Adapter.InsertCommand.Parameters[5].Value = ((string)(ContactNo1));
6254 }
6255 if ((Email == null)) {
6256 this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value;
6257 }
6258 else {
6259 this.Adapter.InsertCommand.Parameters[6].Value = ((string)(Email));
6260 }
6261 if ((Notes == null)) {
6262 this.Adapter.InsertCommand.Parameters[7].Value = global::System.DBNull.Value;
6263 }
6264 else {
6265 this.Adapter.InsertCommand.Parameters[7].Value = ((string)(Notes));
6266 }
6267 global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
6268 if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
6269 != global::System.Data.ConnectionState.Open)) {
6270 this.Adapter.InsertCommand.Connection.Open();
6271 }
6272 try {
6273 int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
6274 return returnValue;
6275 }
6276 finally {
6277 if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
6278 this.Adapter.InsertCommand.Connection.Close();
6279 }
6280 }
6281 }
6282
6283 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
6284 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
6285 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
6286 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
6287 public virtual int Update(string CustomerId, string CustomerName, string Address, string City, string ContactNo, string ContactNo1, string Email, string Notes, string Original_CustomerId, string Original_CustomerName, string Original_City, string Original_ContactNo, string Original_ContactNo1, string Original_Email) {
6288 if ((CustomerId == null)) {
6289 throw new global::System.ArgumentNullException("CustomerId");
6290 }
6291 else {
6292 this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(CustomerId));
6293 }
6294 if ((CustomerName == null)) {
6295 throw new global::System.ArgumentNullException("CustomerName");
6296 }
6297 else {
6298 this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(CustomerName));
6299 }
6300 if ((Address == null)) {
6301 throw new global::System.ArgumentNullException("Address");
6302 }
6303 else {
6304 this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Address));
6305 }
6306 if ((City == null)) {
6307 throw new global::System.ArgumentNullException("City");
6308 }
6309 else {
6310 this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(City));
6311 }
6312 if ((ContactNo == null)) {
6313 throw new global::System.ArgumentNullException("ContactNo");
6314 }
6315 else {
6316 this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(ContactNo));
6317 }
6318 if ((ContactNo1 == null)) {
6319 this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
6320 }
6321 else {
6322 this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(ContactNo1));
6323 }
6324 if ((Email == null)) {
6325 this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
6326 }
6327 else {
6328 this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Email));
6329 }
6330 if ((Notes == null)) {
6331 this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
6332 }
6333 else {
6334 this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Notes));
6335 }
6336 if ((Original_CustomerId == null)) {
6337 throw new global::System.ArgumentNullException("Original_CustomerId");
6338 }
6339 else {
6340 this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(Original_CustomerId));
6341 }
6342 if ((Original_CustomerName == null)) {
6343 throw new global::System.ArgumentNullException("Original_CustomerName");
6344 }
6345 else {
6346 this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(Original_CustomerName));
6347 }
6348 if ((Original_City == null)) {
6349 throw new global::System.ArgumentNullException("Original_City");
6350 }
6351 else {
6352 this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Original_City));
6353 }
6354 if ((Original_ContactNo == null)) {
6355 throw new global::System.ArgumentNullException("Original_ContactNo");
6356 }
6357 else {
6358 this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(Original_ContactNo));
6359 }
6360 if ((Original_ContactNo1 == null)) {
6361 this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(1));
6362 this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value;
6363 }
6364 else {
6365 this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(0));
6366 this.Adapter.UpdateCommand.Parameters[13].Value = ((string)(Original_ContactNo1));
6367 }
6368 if ((Original_Email == null)) {
6369 this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(1));
6370 this.Adapter.UpdateCommand.Parameters[15].Value = global::System.DBNull.Value;
6371 }
6372 else {
6373 this.Adapter.UpdateCommand.Parameters[14].Value = ((object)(0));
6374 this.Adapter.UpdateCommand.Parameters[15].Value = ((string)(Original_Email));
6375 }
6376 global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
6377 if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
6378 != global::System.Data.ConnectionState.Open)) {
6379 this.Adapter.UpdateCommand.Connection.Open();
6380 }
6381 try {
6382 int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
6383 return returnValue;
6384 }
6385 finally {
6386 if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
6387 this.Adapter.UpdateCommand.Connection.Close();
6388 }
6389 }
6390 }
6391
6392 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
6393 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
6394 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
6395 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
6396 public virtual int Update(string CustomerName, string Address, string City, string ContactNo, string ContactNo1, string Email, string Notes, string Original_CustomerId, string Original_CustomerName, string Original_City, string Original_ContactNo, string Original_ContactNo1, string Original_Email) {
6397 return this.Update(Original_CustomerId, CustomerName, Address, City, ContactNo, ContactNo1, Email, Notes, Original_CustomerId, Original_CustomerName, Original_City, Original_ContactNo, Original_ContactNo1, Original_Email);
6398 }
6399 }
6400
6401 /// <summary>
6402 ///Represents the connection and commands used to retrieve and save data.
6403 ///</summary>
6404 [global::System.ComponentModel.DesignerCategoryAttribute("code")]
6405 [global::System.ComponentModel.ToolboxItem(true)]
6406 [global::System.ComponentModel.DataObjectAttribute(true)]
6407 [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
6408 ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
6409 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
6410 public partial class Invoice_InfoTableAdapter : global::System.ComponentModel.Component {
6411
6412 private global::System.Data.SqlClient.SqlDataAdapter _adapter;
6413
6414 private global::System.Data.SqlClient.SqlConnection _connection;
6415
6416 private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
6417
6418 private bool _clearBeforeFill;
6419
6420 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
6421 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
6422 public Invoice_InfoTableAdapter() {
6423 this.ClearBeforeFill = true;
6424 }
6425
6426 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
6427 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
6428 private global::System.Data.SqlClient.SqlDataAdapter Adapter {
6429 get {
6430 if ((this._adapter == null)) {
6431 this.InitAdapter();
6432 }
6433 return this._adapter;
6434 }
6435 }
6436
6437 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
6438 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
6439 internal global::System.Data.SqlClient.SqlConnection Connection {
6440 get {
6441 if ((this._connection == null)) {
6442 this.InitConnection();
6443 }
6444 return this._connection;
6445 }
6446 set {
6447 this._connection = value;
6448 if ((this.Adapter.InsertCommand != null)) {
6449 this.Adapter.InsertCommand.Connection = value;
6450 }
6451 if ((this.Adapter.DeleteCommand != null)) {
6452 this.Adapter.DeleteCommand.Connection = value;
6453 }
6454 if ((this.Adapter.UpdateCommand != null)) {
6455 this.Adapter.UpdateCommand.Connection = value;
6456 }
6457 for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
6458 if ((this.CommandCollection[i] != null)) {
6459 ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
6460 }
6461 }
6462 }
6463 }
6464
6465 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
6466 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
6467 protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
6468 get {
6469 if ((this._commandCollection == null)) {
6470 this.InitCommandCollection();
6471 }
6472 return this._commandCollection;
6473 }
6474 }
6475
6476 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
6477 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
6478 public bool ClearBeforeFill {
6479 get {
6480 return this._clearBeforeFill;
6481 }
6482 set {
6483 this._clearBeforeFill = value;
6484 }
6485 }
6486
6487 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
6488 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
6489 private void InitAdapter() {
6490 this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
6491 global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
6492 tableMapping.SourceTable = "Table";
6493 tableMapping.DataSetTable = "Invoice_Info";
6494 tableMapping.ColumnMappings.Add("InvoiceNo", "InvoiceNo");
6495 tableMapping.ColumnMappings.Add("InvoiceDate", "InvoiceDate");
6496 tableMapping.ColumnMappings.Add("CustomerID", "CustomerID");
6497 tableMapping.ColumnMappings.Add("SubTotal", "SubTotal");
6498 tableMapping.ColumnMappings.Add("VATPer", "VATPer");
6499 tableMapping.ColumnMappings.Add("VATAmount", "VATAmount");
6500 tableMapping.ColumnMappings.Add("DiscountPer", "DiscountPer");
6501 tableMapping.ColumnMappings.Add("DiscountAmount", "DiscountAmount");
6502 tableMapping.ColumnMappings.Add("GrandTotal", "GrandTotal");
6503 tableMapping.ColumnMappings.Add("TotalPayment", "TotalPayment");
6504 tableMapping.ColumnMappings.Add("PaymentDue", "PaymentDue");
6505 tableMapping.ColumnMappings.Add("PaymentType", "PaymentType");
6506 tableMapping.ColumnMappings.Add("Status", "Status");
6507 this._adapter.TableMappings.Add(tableMapping);
6508 this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
6509 this._adapter.DeleteCommand.Connection = this.Connection;
6510 this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Invoice_Info] WHERE (([InvoiceNo] = @Original_InvoiceNo) AND ([InvoiceDate] = @Original_InvoiceDate) AND ([CustomerID] = @Original_CustomerID) AND ([SubTotal] = @Original_SubTotal) AND ([VATPer] = @Original_VATPer) AND ([VATAmount] = @Original_VATAmount) AND ([DiscountPer] = @Original_DiscountPer) AND ([DiscountAmount] = @Original_DiscountAmount) AND ([GrandTotal] = @Original_GrandTotal) AND ([TotalPayment] = @Original_TotalPayment) AND ([PaymentDue] = @Original_PaymentDue) AND ([PaymentType] = @Original_PaymentType) AND ([Status] = @Original_Status))";
6511 this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
6512 this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_InvoiceNo", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "InvoiceNo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
6513 this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_InvoiceDate", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "InvoiceDate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
6514 this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CustomerID", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CustomerID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
6515 this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_SubTotal", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SubTotal", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
6516 this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_VATPer", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "VATPer", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
6517 this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_VATAmount", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "VATAmount", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
6518 this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DiscountPer", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DiscountPer", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
6519 this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DiscountAmount", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DiscountAmount", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
6520 this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_GrandTotal", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "GrandTotal", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
6521 this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TotalPayment", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TotalPayment", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
6522 this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PaymentDue", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PaymentDue", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
6523 this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PaymentType", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PaymentType", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
6524 this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Status", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Status", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
6525 this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
6526 this._adapter.InsertCommand.Connection = this.Connection;
6527 this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Invoice_Info] ([InvoiceNo], [InvoiceDate], [CustomerID], [SubTotal], [VATPer], [VATAmount], [DiscountPer], [DiscountAmount], [GrandTotal], [TotalPayment], [PaymentDue], [PaymentType], [Status]) VALUES (@InvoiceNo, @InvoiceDate, @CustomerID, @SubTotal, @VATPer, @VATAmount, @DiscountPer, @DiscountAmount, @GrandTotal, @TotalPayment, @PaymentDue, @PaymentType, @Status);
6528 SELECT InvoiceNo, InvoiceDate, CustomerID, SubTotal, VATPer, VATAmount, DiscountPer, DiscountAmount, GrandTotal, TotalPayment, PaymentDue, PaymentType, Status FROM Invoice_Info WHERE (InvoiceNo = @InvoiceNo)";
6529 this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
6530 this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@InvoiceNo", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "InvoiceNo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
6531 this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@InvoiceDate", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "InvoiceDate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
6532 this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CustomerID", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CustomerID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
6533 this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@SubTotal", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SubTotal", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
6534 this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@VATPer", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "VATPer", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
6535 this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@VATAmount", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "VATAmount", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
6536 this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DiscountPer", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DiscountPer", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
6537 this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DiscountAmount", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DiscountAmount", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
6538 this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@GrandTotal", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "GrandTotal", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
6539 this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TotalPayment", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TotalPayment", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
6540 this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PaymentDue", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PaymentDue", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
6541 this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PaymentType", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PaymentType", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
6542 this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Status", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Status", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
6543 this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
6544 this._adapter.UpdateCommand.Connection = this.Connection;
6545 this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Invoice_Info] SET [InvoiceNo] = @InvoiceNo, [InvoiceDate] = @InvoiceDate, [CustomerID] = @CustomerID, [SubTotal] = @SubTotal, [VATPer] = @VATPer, [VATAmount] = @VATAmount, [DiscountPer] = @DiscountPer, [DiscountAmount] = @DiscountAmount, [GrandTotal] = @GrandTotal, [TotalPayment] = @TotalPayment, [PaymentDue] = @PaymentDue, [PaymentType] = @PaymentType, [Status] = @Status WHERE (([InvoiceNo] = @Original_InvoiceNo) AND ([InvoiceDate] = @Original_InvoiceDate) AND ([CustomerID] = @Original_CustomerID) AND ([SubTotal] = @Original_SubTotal) AND ([VATPer] = @Original_VATPer) AND ([VATAmount] = @Original_VATAmount) AND ([DiscountPer] = @Original_DiscountPer) AND ([DiscountAmount] = @Original_DiscountAmount) AND ([GrandTotal] = @Original_GrandTotal) AND ([TotalPayment] = @Original_TotalPayment) AND ([PaymentDue] = @Original_PaymentDue) AND ([PaymentType] = @Original_PaymentType) AND ([Status] = @Original_Status));
6546 SELECT InvoiceNo, InvoiceDate, CustomerID, SubTotal, VATPer, VATAmount, DiscountPer, DiscountAmount, GrandTotal, TotalPayment, PaymentDue, PaymentType, Status FROM Invoice_Info WHERE (InvoiceNo = @InvoiceNo)";
6547 this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
6548 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@InvoiceNo", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "InvoiceNo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
6549 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@InvoiceDate", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "InvoiceDate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
6550 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CustomerID", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CustomerID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
6551 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@SubTotal", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SubTotal", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
6552 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@VATPer", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "VATPer", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
6553 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@VATAmount", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "VATAmount", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
6554 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DiscountPer", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DiscountPer", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
6555 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@DiscountAmount", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DiscountAmount", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
6556 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@GrandTotal", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "GrandTotal", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
6557 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TotalPayment", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TotalPayment", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
6558 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PaymentDue", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PaymentDue", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
6559 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@PaymentType", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PaymentType", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
6560 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Status", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Status", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
6561 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_InvoiceNo", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "InvoiceNo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
6562 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_InvoiceDate", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "InvoiceDate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
6563 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CustomerID", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CustomerID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
6564 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_SubTotal", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SubTotal", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
6565 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_VATPer", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "VATPer", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
6566 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_VATAmount", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "VATAmount", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
6567 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DiscountPer", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DiscountPer", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
6568 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_DiscountAmount", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "DiscountAmount", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
6569 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_GrandTotal", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "GrandTotal", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
6570 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TotalPayment", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TotalPayment", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
6571 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PaymentDue", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PaymentDue", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
6572 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_PaymentType", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "PaymentType", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
6573 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Status", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Status", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
6574 }
6575
6576 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
6577 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
6578 private void InitConnection() {
6579 this._connection = new global::System.Data.SqlClient.SqlConnection();
6580 this._connection.ConnectionString = global::WarehouseManagementSystem.Properties.Settings.Default.POS_DBConnectionString;
6581 }
6582
6583 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
6584 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
6585 private void InitCommandCollection() {
6586 this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
6587 this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
6588 this._commandCollection[0].Connection = this.Connection;
6589 this._commandCollection[0].CommandText = "SELECT InvoiceNo, InvoiceDate, CustomerID, SubTotal, VATPer, VATAmount, DiscountP" +
6590 "er, DiscountAmount, GrandTotal, TotalPayment, PaymentDue, PaymentType, Status FR" +
6591 "OM dbo.Invoice_Info";
6592 this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
6593 }
6594
6595 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
6596 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
6597 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
6598 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
6599 public virtual int Fill(POS_DBDataSet.Invoice_InfoDataTable dataTable) {
6600 this.Adapter.SelectCommand = this.CommandCollection[0];
6601 if ((this.ClearBeforeFill == true)) {
6602 dataTable.Clear();
6603 }
6604 int returnValue = this.Adapter.Fill(dataTable);
6605 return returnValue;
6606 }
6607
6608 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
6609 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
6610 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
6611 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
6612 public virtual POS_DBDataSet.Invoice_InfoDataTable GetData() {
6613 this.Adapter.SelectCommand = this.CommandCollection[0];
6614 POS_DBDataSet.Invoice_InfoDataTable dataTable = new POS_DBDataSet.Invoice_InfoDataTable();
6615 this.Adapter.Fill(dataTable);
6616 return dataTable;
6617 }
6618
6619 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
6620 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
6621 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
6622 public virtual int Update(POS_DBDataSet.Invoice_InfoDataTable dataTable) {
6623 return this.Adapter.Update(dataTable);
6624 }
6625
6626 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
6627 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
6628 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
6629 public virtual int Update(POS_DBDataSet dataSet) {
6630 return this.Adapter.Update(dataSet, "Invoice_Info");
6631 }
6632
6633 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
6634 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
6635 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
6636 public virtual int Update(global::System.Data.DataRow dataRow) {
6637 return this.Adapter.Update(new global::System.Data.DataRow[] {
6638 dataRow});
6639 }
6640
6641 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
6642 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
6643 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
6644 public virtual int Update(global::System.Data.DataRow[] dataRows) {
6645 return this.Adapter.Update(dataRows);
6646 }
6647
6648 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
6649 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
6650 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
6651 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
6652 public virtual int Delete(string Original_InvoiceNo, string Original_InvoiceDate, string Original_CustomerID, double Original_SubTotal, double Original_VATPer, double Original_VATAmount, double Original_DiscountPer, double Original_DiscountAmount, double Original_GrandTotal, double Original_TotalPayment, double Original_PaymentDue, string Original_PaymentType, string Original_Status) {
6653 if ((Original_InvoiceNo == null)) {
6654 throw new global::System.ArgumentNullException("Original_InvoiceNo");
6655 }
6656 else {
6657 this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_InvoiceNo));
6658 }
6659 if ((Original_InvoiceDate == null)) {
6660 throw new global::System.ArgumentNullException("Original_InvoiceDate");
6661 }
6662 else {
6663 this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_InvoiceDate));
6664 }
6665 if ((Original_CustomerID == null)) {
6666 throw new global::System.ArgumentNullException("Original_CustomerID");
6667 }
6668 else {
6669 this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_CustomerID));
6670 }
6671 this.Adapter.DeleteCommand.Parameters[3].Value = ((double)(Original_SubTotal));
6672 this.Adapter.DeleteCommand.Parameters[4].Value = ((double)(Original_VATPer));
6673 this.Adapter.DeleteCommand.Parameters[5].Value = ((double)(Original_VATAmount));
6674 this.Adapter.DeleteCommand.Parameters[6].Value = ((double)(Original_DiscountPer));
6675 this.Adapter.DeleteCommand.Parameters[7].Value = ((double)(Original_DiscountAmount));
6676 this.Adapter.DeleteCommand.Parameters[8].Value = ((double)(Original_GrandTotal));
6677 this.Adapter.DeleteCommand.Parameters[9].Value = ((double)(Original_TotalPayment));
6678 this.Adapter.DeleteCommand.Parameters[10].Value = ((double)(Original_PaymentDue));
6679 if ((Original_PaymentType == null)) {
6680 throw new global::System.ArgumentNullException("Original_PaymentType");
6681 }
6682 else {
6683 this.Adapter.DeleteCommand.Parameters[11].Value = ((string)(Original_PaymentType));
6684 }
6685 if ((Original_Status == null)) {
6686 throw new global::System.ArgumentNullException("Original_Status");
6687 }
6688 else {
6689 this.Adapter.DeleteCommand.Parameters[12].Value = ((string)(Original_Status));
6690 }
6691 global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
6692 if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
6693 != global::System.Data.ConnectionState.Open)) {
6694 this.Adapter.DeleteCommand.Connection.Open();
6695 }
6696 try {
6697 int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
6698 return returnValue;
6699 }
6700 finally {
6701 if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
6702 this.Adapter.DeleteCommand.Connection.Close();
6703 }
6704 }
6705 }
6706
6707 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
6708 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
6709 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
6710 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
6711 public virtual int Insert(string InvoiceNo, string InvoiceDate, string CustomerID, double SubTotal, double VATPer, double VATAmount, double DiscountPer, double DiscountAmount, double GrandTotal, double TotalPayment, double PaymentDue, string PaymentType, string Status) {
6712 if ((InvoiceNo == null)) {
6713 throw new global::System.ArgumentNullException("InvoiceNo");
6714 }
6715 else {
6716 this.Adapter.InsertCommand.Parameters[0].Value = ((string)(InvoiceNo));
6717 }
6718 if ((InvoiceDate == null)) {
6719 throw new global::System.ArgumentNullException("InvoiceDate");
6720 }
6721 else {
6722 this.Adapter.InsertCommand.Parameters[1].Value = ((string)(InvoiceDate));
6723 }
6724 if ((CustomerID == null)) {
6725 throw new global::System.ArgumentNullException("CustomerID");
6726 }
6727 else {
6728 this.Adapter.InsertCommand.Parameters[2].Value = ((string)(CustomerID));
6729 }
6730 this.Adapter.InsertCommand.Parameters[3].Value = ((double)(SubTotal));
6731 this.Adapter.InsertCommand.Parameters[4].Value = ((double)(VATPer));
6732 this.Adapter.InsertCommand.Parameters[5].Value = ((double)(VATAmount));
6733 this.Adapter.InsertCommand.Parameters[6].Value = ((double)(DiscountPer));
6734 this.Adapter.InsertCommand.Parameters[7].Value = ((double)(DiscountAmount));
6735 this.Adapter.InsertCommand.Parameters[8].Value = ((double)(GrandTotal));
6736 this.Adapter.InsertCommand.Parameters[9].Value = ((double)(TotalPayment));
6737 this.Adapter.InsertCommand.Parameters[10].Value = ((double)(PaymentDue));
6738 if ((PaymentType == null)) {
6739 throw new global::System.ArgumentNullException("PaymentType");
6740 }
6741 else {
6742 this.Adapter.InsertCommand.Parameters[11].Value = ((string)(PaymentType));
6743 }
6744 if ((Status == null)) {
6745 throw new global::System.ArgumentNullException("Status");
6746 }
6747 else {
6748 this.Adapter.InsertCommand.Parameters[12].Value = ((string)(Status));
6749 }
6750 global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
6751 if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
6752 != global::System.Data.ConnectionState.Open)) {
6753 this.Adapter.InsertCommand.Connection.Open();
6754 }
6755 try {
6756 int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
6757 return returnValue;
6758 }
6759 finally {
6760 if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
6761 this.Adapter.InsertCommand.Connection.Close();
6762 }
6763 }
6764 }
6765
6766 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
6767 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
6768 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
6769 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
6770 public virtual int Update(
6771 string InvoiceNo,
6772 string InvoiceDate,
6773 string CustomerID,
6774 double SubTotal,
6775 double VATPer,
6776 double VATAmount,
6777 double DiscountPer,
6778 double DiscountAmount,
6779 double GrandTotal,
6780 double TotalPayment,
6781 double PaymentDue,
6782 string PaymentType,
6783 string Status,
6784 string Original_InvoiceNo,
6785 string Original_InvoiceDate,
6786 string Original_CustomerID,
6787 double Original_SubTotal,
6788 double Original_VATPer,
6789 double Original_VATAmount,
6790 double Original_DiscountPer,
6791 double Original_DiscountAmount,
6792 double Original_GrandTotal,
6793 double Original_TotalPayment,
6794 double Original_PaymentDue,
6795 string Original_PaymentType,
6796 string Original_Status) {
6797 if ((InvoiceNo == null)) {
6798 throw new global::System.ArgumentNullException("InvoiceNo");
6799 }
6800 else {
6801 this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(InvoiceNo));
6802 }
6803 if ((InvoiceDate == null)) {
6804 throw new global::System.ArgumentNullException("InvoiceDate");
6805 }
6806 else {
6807 this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(InvoiceDate));
6808 }
6809 if ((CustomerID == null)) {
6810 throw new global::System.ArgumentNullException("CustomerID");
6811 }
6812 else {
6813 this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(CustomerID));
6814 }
6815 this.Adapter.UpdateCommand.Parameters[3].Value = ((double)(SubTotal));
6816 this.Adapter.UpdateCommand.Parameters[4].Value = ((double)(VATPer));
6817 this.Adapter.UpdateCommand.Parameters[5].Value = ((double)(VATAmount));
6818 this.Adapter.UpdateCommand.Parameters[6].Value = ((double)(DiscountPer));
6819 this.Adapter.UpdateCommand.Parameters[7].Value = ((double)(DiscountAmount));
6820 this.Adapter.UpdateCommand.Parameters[8].Value = ((double)(GrandTotal));
6821 this.Adapter.UpdateCommand.Parameters[9].Value = ((double)(TotalPayment));
6822 this.Adapter.UpdateCommand.Parameters[10].Value = ((double)(PaymentDue));
6823 if ((PaymentType == null)) {
6824 throw new global::System.ArgumentNullException("PaymentType");
6825 }
6826 else {
6827 this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(PaymentType));
6828 }
6829 if ((Status == null)) {
6830 throw new global::System.ArgumentNullException("Status");
6831 }
6832 else {
6833 this.Adapter.UpdateCommand.Parameters[12].Value = ((string)(Status));
6834 }
6835 if ((Original_InvoiceNo == null)) {
6836 throw new global::System.ArgumentNullException("Original_InvoiceNo");
6837 }
6838 else {
6839 this.Adapter.UpdateCommand.Parameters[13].Value = ((string)(Original_InvoiceNo));
6840 }
6841 if ((Original_InvoiceDate == null)) {
6842 throw new global::System.ArgumentNullException("Original_InvoiceDate");
6843 }
6844 else {
6845 this.Adapter.UpdateCommand.Parameters[14].Value = ((string)(Original_InvoiceDate));
6846 }
6847 if ((Original_CustomerID == null)) {
6848 throw new global::System.ArgumentNullException("Original_CustomerID");
6849 }
6850 else {
6851 this.Adapter.UpdateCommand.Parameters[15].Value = ((string)(Original_CustomerID));
6852 }
6853 this.Adapter.UpdateCommand.Parameters[16].Value = ((double)(Original_SubTotal));
6854 this.Adapter.UpdateCommand.Parameters[17].Value = ((double)(Original_VATPer));
6855 this.Adapter.UpdateCommand.Parameters[18].Value = ((double)(Original_VATAmount));
6856 this.Adapter.UpdateCommand.Parameters[19].Value = ((double)(Original_DiscountPer));
6857 this.Adapter.UpdateCommand.Parameters[20].Value = ((double)(Original_DiscountAmount));
6858 this.Adapter.UpdateCommand.Parameters[21].Value = ((double)(Original_GrandTotal));
6859 this.Adapter.UpdateCommand.Parameters[22].Value = ((double)(Original_TotalPayment));
6860 this.Adapter.UpdateCommand.Parameters[23].Value = ((double)(Original_PaymentDue));
6861 if ((Original_PaymentType == null)) {
6862 throw new global::System.ArgumentNullException("Original_PaymentType");
6863 }
6864 else {
6865 this.Adapter.UpdateCommand.Parameters[24].Value = ((string)(Original_PaymentType));
6866 }
6867 if ((Original_Status == null)) {
6868 throw new global::System.ArgumentNullException("Original_Status");
6869 }
6870 else {
6871 this.Adapter.UpdateCommand.Parameters[25].Value = ((string)(Original_Status));
6872 }
6873 global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
6874 if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
6875 != global::System.Data.ConnectionState.Open)) {
6876 this.Adapter.UpdateCommand.Connection.Open();
6877 }
6878 try {
6879 int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
6880 return returnValue;
6881 }
6882 finally {
6883 if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
6884 this.Adapter.UpdateCommand.Connection.Close();
6885 }
6886 }
6887 }
6888
6889 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
6890 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
6891 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
6892 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
6893 public virtual int Update(
6894 string InvoiceDate,
6895 string CustomerID,
6896 double SubTotal,
6897 double VATPer,
6898 double VATAmount,
6899 double DiscountPer,
6900 double DiscountAmount,
6901 double GrandTotal,
6902 double TotalPayment,
6903 double PaymentDue,
6904 string PaymentType,
6905 string Status,
6906 string Original_InvoiceNo,
6907 string Original_InvoiceDate,
6908 string Original_CustomerID,
6909 double Original_SubTotal,
6910 double Original_VATPer,
6911 double Original_VATAmount,
6912 double Original_DiscountPer,
6913 double Original_DiscountAmount,
6914 double Original_GrandTotal,
6915 double Original_TotalPayment,
6916 double Original_PaymentDue,
6917 string Original_PaymentType,
6918 string Original_Status) {
6919 return this.Update(Original_InvoiceNo, InvoiceDate, CustomerID, SubTotal, VATPer, VATAmount, DiscountPer, DiscountAmount, GrandTotal, TotalPayment, PaymentDue, PaymentType, Status, Original_InvoiceNo, Original_InvoiceDate, Original_CustomerID, Original_SubTotal, Original_VATPer, Original_VATAmount, Original_DiscountPer, Original_DiscountAmount, Original_GrandTotal, Original_TotalPayment, Original_PaymentDue, Original_PaymentType, Original_Status);
6920 }
6921 }
6922
6923 /// <summary>
6924 ///Represents the connection and commands used to retrieve and save data.
6925 ///</summary>
6926 [global::System.ComponentModel.DesignerCategoryAttribute("code")]
6927 [global::System.ComponentModel.ToolboxItem(true)]
6928 [global::System.ComponentModel.DataObjectAttribute(true)]
6929 [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
6930 ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
6931 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
6932 public partial class ProductTableAdapter : global::System.ComponentModel.Component {
6933
6934 private global::System.Data.SqlClient.SqlDataAdapter _adapter;
6935
6936 private global::System.Data.SqlClient.SqlConnection _connection;
6937
6938 private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
6939
6940 private bool _clearBeforeFill;
6941
6942 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
6943 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
6944 public ProductTableAdapter() {
6945 this.ClearBeforeFill = true;
6946 }
6947
6948 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
6949 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
6950 private global::System.Data.SqlClient.SqlDataAdapter Adapter {
6951 get {
6952 if ((this._adapter == null)) {
6953 this.InitAdapter();
6954 }
6955 return this._adapter;
6956 }
6957 }
6958
6959 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
6960 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
6961 internal global::System.Data.SqlClient.SqlConnection Connection {
6962 get {
6963 if ((this._connection == null)) {
6964 this.InitConnection();
6965 }
6966 return this._connection;
6967 }
6968 set {
6969 this._connection = value;
6970 if ((this.Adapter.InsertCommand != null)) {
6971 this.Adapter.InsertCommand.Connection = value;
6972 }
6973 if ((this.Adapter.DeleteCommand != null)) {
6974 this.Adapter.DeleteCommand.Connection = value;
6975 }
6976 if ((this.Adapter.UpdateCommand != null)) {
6977 this.Adapter.UpdateCommand.Connection = value;
6978 }
6979 for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
6980 if ((this.CommandCollection[i] != null)) {
6981 ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
6982 }
6983 }
6984 }
6985 }
6986
6987 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
6988 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
6989 protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
6990 get {
6991 if ((this._commandCollection == null)) {
6992 this.InitCommandCollection();
6993 }
6994 return this._commandCollection;
6995 }
6996 }
6997
6998 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
6999 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
7000 public bool ClearBeforeFill {
7001 get {
7002 return this._clearBeforeFill;
7003 }
7004 set {
7005 this._clearBeforeFill = value;
7006 }
7007 }
7008
7009 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
7010 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
7011 private void InitAdapter() {
7012 this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
7013 global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
7014 tableMapping.SourceTable = "Table";
7015 tableMapping.DataSetTable = "Product";
7016 tableMapping.ColumnMappings.Add("ProductID", "ProductID");
7017 tableMapping.ColumnMappings.Add("ProductName", "ProductName");
7018 tableMapping.ColumnMappings.Add("CategoryID", "CategoryID");
7019 tableMapping.ColumnMappings.Add("SubCategoryID", "SubCategoryID");
7020 tableMapping.ColumnMappings.Add("Features", "Features");
7021 tableMapping.ColumnMappings.Add("Price", "Price");
7022 tableMapping.ColumnMappings.Add("Image", "Image");
7023 this._adapter.TableMappings.Add(tableMapping);
7024 this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
7025 this._adapter.DeleteCommand.Connection = this.Connection;
7026 this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Product] WHERE (([ProductID] = @Original_ProductID) AND ([Cate" +
7027 "goryID] = @Original_CategoryID) AND ([SubCategoryID] = @Original_SubCategoryID) " +
7028 "AND ([Price] = @Original_Price))";
7029 this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
7030 this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ProductID", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
7031 this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CategoryID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CategoryID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
7032 this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_SubCategoryID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SubCategoryID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
7033 this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Price", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Price", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
7034 this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
7035 this._adapter.InsertCommand.Connection = this.Connection;
7036 this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Product] ([ProductID], [ProductName], [CategoryID], [SubCategoryID], [Features], [Price], [Image]) VALUES (@ProductID, @ProductName, @CategoryID, @SubCategoryID, @Features, @Price, @Image);
7037 SELECT ProductID, ProductName, CategoryID, SubCategoryID, Features, Price, Image FROM Product WHERE (ProductID = @ProductID)";
7038 this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
7039 this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductID", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
7040 this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductName", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductName", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
7041 this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CategoryID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CategoryID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
7042 this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@SubCategoryID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SubCategoryID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
7043 this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Features", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Features", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
7044 this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Price", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Price", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
7045 this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Image", global::System.Data.SqlDbType.Image, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Image", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
7046 this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
7047 this._adapter.UpdateCommand.Connection = this.Connection;
7048 this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Product] SET [ProductID] = @ProductID, [ProductName] = @ProductName, [CategoryID] = @CategoryID, [SubCategoryID] = @SubCategoryID, [Features] = @Features, [Price] = @Price, [Image] = @Image WHERE (([ProductID] = @Original_ProductID) AND ([CategoryID] = @Original_CategoryID) AND ([SubCategoryID] = @Original_SubCategoryID) AND ([Price] = @Original_Price));
7049 SELECT ProductID, ProductName, CategoryID, SubCategoryID, Features, Price, Image FROM Product WHERE (ProductID = @ProductID)";
7050 this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
7051 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductID", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
7052 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductName", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductName", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
7053 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CategoryID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CategoryID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
7054 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@SubCategoryID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SubCategoryID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
7055 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Features", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Features", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
7056 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Price", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Price", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
7057 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Image", global::System.Data.SqlDbType.Image, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Image", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
7058 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ProductID", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
7059 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CategoryID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CategoryID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
7060 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_SubCategoryID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SubCategoryID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
7061 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Price", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Price", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
7062 }
7063
7064 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
7065 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
7066 private void InitConnection() {
7067 this._connection = new global::System.Data.SqlClient.SqlConnection();
7068 this._connection.ConnectionString = global::WarehouseManagementSystem.Properties.Settings.Default.POS_DBConnectionString;
7069 }
7070
7071 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
7072 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
7073 private void InitCommandCollection() {
7074 this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
7075 this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
7076 this._commandCollection[0].Connection = this.Connection;
7077 this._commandCollection[0].CommandText = "SELECT ProductID, ProductName, CategoryID, SubCategoryID, Features, Price, Image " +
7078 "FROM dbo.Product";
7079 this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
7080 }
7081
7082 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
7083 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
7084 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
7085 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
7086 public virtual int Fill(POS_DBDataSet.ProductDataTable dataTable) {
7087 this.Adapter.SelectCommand = this.CommandCollection[0];
7088 if ((this.ClearBeforeFill == true)) {
7089 dataTable.Clear();
7090 }
7091 int returnValue = this.Adapter.Fill(dataTable);
7092 return returnValue;
7093 }
7094
7095 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
7096 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
7097 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
7098 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
7099 public virtual POS_DBDataSet.ProductDataTable GetData() {
7100 this.Adapter.SelectCommand = this.CommandCollection[0];
7101 POS_DBDataSet.ProductDataTable dataTable = new POS_DBDataSet.ProductDataTable();
7102 this.Adapter.Fill(dataTable);
7103 return dataTable;
7104 }
7105
7106 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
7107 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
7108 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
7109 public virtual int Update(POS_DBDataSet.ProductDataTable dataTable) {
7110 return this.Adapter.Update(dataTable);
7111 }
7112
7113 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
7114 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
7115 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
7116 public virtual int Update(POS_DBDataSet dataSet) {
7117 return this.Adapter.Update(dataSet, "Product");
7118 }
7119
7120 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
7121 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
7122 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
7123 public virtual int Update(global::System.Data.DataRow dataRow) {
7124 return this.Adapter.Update(new global::System.Data.DataRow[] {
7125 dataRow});
7126 }
7127
7128 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
7129 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
7130 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
7131 public virtual int Update(global::System.Data.DataRow[] dataRows) {
7132 return this.Adapter.Update(dataRows);
7133 }
7134
7135 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
7136 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
7137 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
7138 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
7139 public virtual int Delete(string Original_ProductID, int Original_CategoryID, int Original_SubCategoryID, double Original_Price) {
7140 if ((Original_ProductID == null)) {
7141 throw new global::System.ArgumentNullException("Original_ProductID");
7142 }
7143 else {
7144 this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_ProductID));
7145 }
7146 this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_CategoryID));
7147 this.Adapter.DeleteCommand.Parameters[2].Value = ((int)(Original_SubCategoryID));
7148 this.Adapter.DeleteCommand.Parameters[3].Value = ((double)(Original_Price));
7149 global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
7150 if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
7151 != global::System.Data.ConnectionState.Open)) {
7152 this.Adapter.DeleteCommand.Connection.Open();
7153 }
7154 try {
7155 int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
7156 return returnValue;
7157 }
7158 finally {
7159 if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
7160 this.Adapter.DeleteCommand.Connection.Close();
7161 }
7162 }
7163 }
7164
7165 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
7166 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
7167 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
7168 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
7169 public virtual int Insert(string ProductID, string ProductName, int CategoryID, int SubCategoryID, string Features, double Price, byte[] Image) {
7170 if ((ProductID == null)) {
7171 throw new global::System.ArgumentNullException("ProductID");
7172 }
7173 else {
7174 this.Adapter.InsertCommand.Parameters[0].Value = ((string)(ProductID));
7175 }
7176 if ((ProductName == null)) {
7177 throw new global::System.ArgumentNullException("ProductName");
7178 }
7179 else {
7180 this.Adapter.InsertCommand.Parameters[1].Value = ((string)(ProductName));
7181 }
7182 this.Adapter.InsertCommand.Parameters[2].Value = ((int)(CategoryID));
7183 this.Adapter.InsertCommand.Parameters[3].Value = ((int)(SubCategoryID));
7184 if ((Features == null)) {
7185 this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
7186 }
7187 else {
7188 this.Adapter.InsertCommand.Parameters[4].Value = ((string)(Features));
7189 }
7190 this.Adapter.InsertCommand.Parameters[5].Value = ((double)(Price));
7191 if ((Image == null)) {
7192 throw new global::System.ArgumentNullException("Image");
7193 }
7194 else {
7195 this.Adapter.InsertCommand.Parameters[6].Value = ((byte[])(Image));
7196 }
7197 global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
7198 if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
7199 != global::System.Data.ConnectionState.Open)) {
7200 this.Adapter.InsertCommand.Connection.Open();
7201 }
7202 try {
7203 int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
7204 return returnValue;
7205 }
7206 finally {
7207 if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
7208 this.Adapter.InsertCommand.Connection.Close();
7209 }
7210 }
7211 }
7212
7213 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
7214 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
7215 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
7216 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
7217 public virtual int Update(string ProductID, string ProductName, int CategoryID, int SubCategoryID, string Features, double Price, byte[] Image, string Original_ProductID, int Original_CategoryID, int Original_SubCategoryID, double Original_Price) {
7218 if ((ProductID == null)) {
7219 throw new global::System.ArgumentNullException("ProductID");
7220 }
7221 else {
7222 this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(ProductID));
7223 }
7224 if ((ProductName == null)) {
7225 throw new global::System.ArgumentNullException("ProductName");
7226 }
7227 else {
7228 this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(ProductName));
7229 }
7230 this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(CategoryID));
7231 this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(SubCategoryID));
7232 if ((Features == null)) {
7233 this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
7234 }
7235 else {
7236 this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Features));
7237 }
7238 this.Adapter.UpdateCommand.Parameters[5].Value = ((double)(Price));
7239 if ((Image == null)) {
7240 throw new global::System.ArgumentNullException("Image");
7241 }
7242 else {
7243 this.Adapter.UpdateCommand.Parameters[6].Value = ((byte[])(Image));
7244 }
7245 if ((Original_ProductID == null)) {
7246 throw new global::System.ArgumentNullException("Original_ProductID");
7247 }
7248 else {
7249 this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Original_ProductID));
7250 }
7251 this.Adapter.UpdateCommand.Parameters[8].Value = ((int)(Original_CategoryID));
7252 this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(Original_SubCategoryID));
7253 this.Adapter.UpdateCommand.Parameters[10].Value = ((double)(Original_Price));
7254 global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
7255 if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
7256 != global::System.Data.ConnectionState.Open)) {
7257 this.Adapter.UpdateCommand.Connection.Open();
7258 }
7259 try {
7260 int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
7261 return returnValue;
7262 }
7263 finally {
7264 if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
7265 this.Adapter.UpdateCommand.Connection.Close();
7266 }
7267 }
7268 }
7269
7270 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
7271 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
7272 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
7273 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
7274 public virtual int Update(string ProductName, int CategoryID, int SubCategoryID, string Features, double Price, byte[] Image, string Original_ProductID, int Original_CategoryID, int Original_SubCategoryID, double Original_Price) {
7275 return this.Update(Original_ProductID, ProductName, CategoryID, SubCategoryID, Features, Price, Image, Original_ProductID, Original_CategoryID, Original_SubCategoryID, Original_Price);
7276 }
7277 }
7278
7279 /// <summary>
7280 ///Represents the connection and commands used to retrieve and save data.
7281 ///</summary>
7282 [global::System.ComponentModel.DesignerCategoryAttribute("code")]
7283 [global::System.ComponentModel.ToolboxItem(true)]
7284 [global::System.ComponentModel.DataObjectAttribute(true)]
7285 [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
7286 ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
7287 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
7288 public partial class ProductSoldTableAdapter : global::System.ComponentModel.Component {
7289
7290 private global::System.Data.SqlClient.SqlDataAdapter _adapter;
7291
7292 private global::System.Data.SqlClient.SqlConnection _connection;
7293
7294 private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
7295
7296 private bool _clearBeforeFill;
7297
7298 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
7299 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
7300 public ProductSoldTableAdapter() {
7301 this.ClearBeforeFill = true;
7302 }
7303
7304 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
7305 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
7306 private global::System.Data.SqlClient.SqlDataAdapter Adapter {
7307 get {
7308 if ((this._adapter == null)) {
7309 this.InitAdapter();
7310 }
7311 return this._adapter;
7312 }
7313 }
7314
7315 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
7316 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
7317 internal global::System.Data.SqlClient.SqlConnection Connection {
7318 get {
7319 if ((this._connection == null)) {
7320 this.InitConnection();
7321 }
7322 return this._connection;
7323 }
7324 set {
7325 this._connection = value;
7326 if ((this.Adapter.InsertCommand != null)) {
7327 this.Adapter.InsertCommand.Connection = value;
7328 }
7329 if ((this.Adapter.DeleteCommand != null)) {
7330 this.Adapter.DeleteCommand.Connection = value;
7331 }
7332 if ((this.Adapter.UpdateCommand != null)) {
7333 this.Adapter.UpdateCommand.Connection = value;
7334 }
7335 for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
7336 if ((this.CommandCollection[i] != null)) {
7337 ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
7338 }
7339 }
7340 }
7341 }
7342
7343 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
7344 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
7345 protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
7346 get {
7347 if ((this._commandCollection == null)) {
7348 this.InitCommandCollection();
7349 }
7350 return this._commandCollection;
7351 }
7352 }
7353
7354 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
7355 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
7356 public bool ClearBeforeFill {
7357 get {
7358 return this._clearBeforeFill;
7359 }
7360 set {
7361 this._clearBeforeFill = value;
7362 }
7363 }
7364
7365 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
7366 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
7367 private void InitAdapter() {
7368 this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
7369 global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
7370 tableMapping.SourceTable = "Table";
7371 tableMapping.DataSetTable = "ProductSold";
7372 tableMapping.ColumnMappings.Add("Id", "Id");
7373 tableMapping.ColumnMappings.Add("InvoiceNo", "InvoiceNo");
7374 tableMapping.ColumnMappings.Add("ProductID", "ProductID");
7375 tableMapping.ColumnMappings.Add("ProductName", "ProductName");
7376 tableMapping.ColumnMappings.Add("Price", "Price");
7377 tableMapping.ColumnMappings.Add("Quantity", "Quantity");
7378 tableMapping.ColumnMappings.Add("TotalAmount", "TotalAmount");
7379 this._adapter.TableMappings.Add(tableMapping);
7380 this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
7381 this._adapter.DeleteCommand.Connection = this.Connection;
7382 this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[ProductSold] WHERE (([Id] = @Original_Id) AND ([InvoiceNo] = @Original_InvoiceNo) AND ([ProductID] = @Original_ProductID) AND ([ProductName] = @Original_ProductName) AND ([Price] = @Original_Price) AND ([Quantity] = @Original_Quantity) AND ([TotalAmount] = @Original_TotalAmount))";
7383 this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
7384 this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Id", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Id", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
7385 this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_InvoiceNo", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "InvoiceNo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
7386 this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ProductID", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
7387 this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ProductName", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductName", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
7388 this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Price", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Price", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
7389 this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Quantity", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Quantity", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
7390 this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TotalAmount", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TotalAmount", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
7391 this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
7392 this._adapter.InsertCommand.Connection = this.Connection;
7393 this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[ProductSold] ([InvoiceNo], [ProductID], [ProductName], [Price], [Quantity], [TotalAmount]) VALUES (@InvoiceNo, @ProductID, @ProductName, @Price, @Quantity, @TotalAmount);
7394 SELECT Id, InvoiceNo, ProductID, ProductName, Price, Quantity, TotalAmount FROM ProductSold WHERE (Id = SCOPE_IDENTITY())";
7395 this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
7396 this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@InvoiceNo", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "InvoiceNo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
7397 this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductID", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
7398 this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductName", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductName", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
7399 this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Price", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Price", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
7400 this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Quantity", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Quantity", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
7401 this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TotalAmount", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TotalAmount", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
7402 this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
7403 this._adapter.UpdateCommand.Connection = this.Connection;
7404 this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[ProductSold] SET [InvoiceNo] = @InvoiceNo, [ProductID] = @ProductID, [ProductName] = @ProductName, [Price] = @Price, [Quantity] = @Quantity, [TotalAmount] = @TotalAmount WHERE (([Id] = @Original_Id) AND ([InvoiceNo] = @Original_InvoiceNo) AND ([ProductID] = @Original_ProductID) AND ([ProductName] = @Original_ProductName) AND ([Price] = @Original_Price) AND ([Quantity] = @Original_Quantity) AND ([TotalAmount] = @Original_TotalAmount));
7405 SELECT Id, InvoiceNo, ProductID, ProductName, Price, Quantity, TotalAmount FROM ProductSold WHERE (Id = @Id)";
7406 this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
7407 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@InvoiceNo", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "InvoiceNo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
7408 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductID", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
7409 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductName", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductName", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
7410 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Price", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Price", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
7411 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Quantity", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Quantity", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
7412 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@TotalAmount", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TotalAmount", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
7413 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Id", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Id", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
7414 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_InvoiceNo", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "InvoiceNo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
7415 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ProductID", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
7416 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ProductName", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductName", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
7417 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Price", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Price", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
7418 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Quantity", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Quantity", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
7419 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_TotalAmount", global::System.Data.SqlDbType.Float, 0, global::System.Data.ParameterDirection.Input, 0, 0, "TotalAmount", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
7420 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Id", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "Id", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
7421 }
7422
7423 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
7424 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
7425 private void InitConnection() {
7426 this._connection = new global::System.Data.SqlClient.SqlConnection();
7427 this._connection.ConnectionString = global::WarehouseManagementSystem.Properties.Settings.Default.POS_DBConnectionString;
7428 }
7429
7430 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
7431 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
7432 private void InitCommandCollection() {
7433 this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
7434 this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
7435 this._commandCollection[0].Connection = this.Connection;
7436 this._commandCollection[0].CommandText = "SELECT Id, InvoiceNo, ProductID, ProductName, Price, Quantity, TotalAmount FROM d" +
7437 "bo.ProductSold";
7438 this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
7439 }
7440
7441 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
7442 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
7443 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
7444 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
7445 public virtual int Fill(POS_DBDataSet.ProductSoldDataTable dataTable) {
7446 this.Adapter.SelectCommand = this.CommandCollection[0];
7447 if ((this.ClearBeforeFill == true)) {
7448 dataTable.Clear();
7449 }
7450 int returnValue = this.Adapter.Fill(dataTable);
7451 return returnValue;
7452 }
7453
7454 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
7455 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
7456 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
7457 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
7458 public virtual POS_DBDataSet.ProductSoldDataTable GetData() {
7459 this.Adapter.SelectCommand = this.CommandCollection[0];
7460 POS_DBDataSet.ProductSoldDataTable dataTable = new POS_DBDataSet.ProductSoldDataTable();
7461 this.Adapter.Fill(dataTable);
7462 return dataTable;
7463 }
7464
7465 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
7466 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
7467 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
7468 public virtual int Update(POS_DBDataSet.ProductSoldDataTable dataTable) {
7469 return this.Adapter.Update(dataTable);
7470 }
7471
7472 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
7473 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
7474 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
7475 public virtual int Update(POS_DBDataSet dataSet) {
7476 return this.Adapter.Update(dataSet, "ProductSold");
7477 }
7478
7479 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
7480 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
7481 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
7482 public virtual int Update(global::System.Data.DataRow dataRow) {
7483 return this.Adapter.Update(new global::System.Data.DataRow[] {
7484 dataRow});
7485 }
7486
7487 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
7488 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
7489 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
7490 public virtual int Update(global::System.Data.DataRow[] dataRows) {
7491 return this.Adapter.Update(dataRows);
7492 }
7493
7494 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
7495 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
7496 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
7497 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
7498 public virtual int Delete(int Original_Id, string Original_InvoiceNo, string Original_ProductID, string Original_ProductName, double Original_Price, int Original_Quantity, double Original_TotalAmount) {
7499 this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_Id));
7500 if ((Original_InvoiceNo == null)) {
7501 throw new global::System.ArgumentNullException("Original_InvoiceNo");
7502 }
7503 else {
7504 this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_InvoiceNo));
7505 }
7506 if ((Original_ProductID == null)) {
7507 throw new global::System.ArgumentNullException("Original_ProductID");
7508 }
7509 else {
7510 this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_ProductID));
7511 }
7512 if ((Original_ProductName == null)) {
7513 throw new global::System.ArgumentNullException("Original_ProductName");
7514 }
7515 else {
7516 this.Adapter.DeleteCommand.Parameters[3].Value = ((string)(Original_ProductName));
7517 }
7518 this.Adapter.DeleteCommand.Parameters[4].Value = ((double)(Original_Price));
7519 this.Adapter.DeleteCommand.Parameters[5].Value = ((int)(Original_Quantity));
7520 this.Adapter.DeleteCommand.Parameters[6].Value = ((double)(Original_TotalAmount));
7521 global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
7522 if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
7523 != global::System.Data.ConnectionState.Open)) {
7524 this.Adapter.DeleteCommand.Connection.Open();
7525 }
7526 try {
7527 int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
7528 return returnValue;
7529 }
7530 finally {
7531 if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
7532 this.Adapter.DeleteCommand.Connection.Close();
7533 }
7534 }
7535 }
7536
7537 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
7538 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
7539 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
7540 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
7541 public virtual int Insert(string InvoiceNo, string ProductID, string ProductName, double Price, int Quantity, double TotalAmount) {
7542 if ((InvoiceNo == null)) {
7543 throw new global::System.ArgumentNullException("InvoiceNo");
7544 }
7545 else {
7546 this.Adapter.InsertCommand.Parameters[0].Value = ((string)(InvoiceNo));
7547 }
7548 if ((ProductID == null)) {
7549 throw new global::System.ArgumentNullException("ProductID");
7550 }
7551 else {
7552 this.Adapter.InsertCommand.Parameters[1].Value = ((string)(ProductID));
7553 }
7554 if ((ProductName == null)) {
7555 throw new global::System.ArgumentNullException("ProductName");
7556 }
7557 else {
7558 this.Adapter.InsertCommand.Parameters[2].Value = ((string)(ProductName));
7559 }
7560 this.Adapter.InsertCommand.Parameters[3].Value = ((double)(Price));
7561 this.Adapter.InsertCommand.Parameters[4].Value = ((int)(Quantity));
7562 this.Adapter.InsertCommand.Parameters[5].Value = ((double)(TotalAmount));
7563 global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
7564 if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
7565 != global::System.Data.ConnectionState.Open)) {
7566 this.Adapter.InsertCommand.Connection.Open();
7567 }
7568 try {
7569 int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
7570 return returnValue;
7571 }
7572 finally {
7573 if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
7574 this.Adapter.InsertCommand.Connection.Close();
7575 }
7576 }
7577 }
7578
7579 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
7580 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
7581 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
7582 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
7583 public virtual int Update(string InvoiceNo, string ProductID, string ProductName, double Price, int Quantity, double TotalAmount, int Original_Id, string Original_InvoiceNo, string Original_ProductID, string Original_ProductName, double Original_Price, int Original_Quantity, double Original_TotalAmount, int Id) {
7584 if ((InvoiceNo == null)) {
7585 throw new global::System.ArgumentNullException("InvoiceNo");
7586 }
7587 else {
7588 this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(InvoiceNo));
7589 }
7590 if ((ProductID == null)) {
7591 throw new global::System.ArgumentNullException("ProductID");
7592 }
7593 else {
7594 this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(ProductID));
7595 }
7596 if ((ProductName == null)) {
7597 throw new global::System.ArgumentNullException("ProductName");
7598 }
7599 else {
7600 this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(ProductName));
7601 }
7602 this.Adapter.UpdateCommand.Parameters[3].Value = ((double)(Price));
7603 this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(Quantity));
7604 this.Adapter.UpdateCommand.Parameters[5].Value = ((double)(TotalAmount));
7605 this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_Id));
7606 if ((Original_InvoiceNo == null)) {
7607 throw new global::System.ArgumentNullException("Original_InvoiceNo");
7608 }
7609 else {
7610 this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Original_InvoiceNo));
7611 }
7612 if ((Original_ProductID == null)) {
7613 throw new global::System.ArgumentNullException("Original_ProductID");
7614 }
7615 else {
7616 this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(Original_ProductID));
7617 }
7618 if ((Original_ProductName == null)) {
7619 throw new global::System.ArgumentNullException("Original_ProductName");
7620 }
7621 else {
7622 this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(Original_ProductName));
7623 }
7624 this.Adapter.UpdateCommand.Parameters[10].Value = ((double)(Original_Price));
7625 this.Adapter.UpdateCommand.Parameters[11].Value = ((int)(Original_Quantity));
7626 this.Adapter.UpdateCommand.Parameters[12].Value = ((double)(Original_TotalAmount));
7627 this.Adapter.UpdateCommand.Parameters[13].Value = ((int)(Id));
7628 global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
7629 if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
7630 != global::System.Data.ConnectionState.Open)) {
7631 this.Adapter.UpdateCommand.Connection.Open();
7632 }
7633 try {
7634 int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
7635 return returnValue;
7636 }
7637 finally {
7638 if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
7639 this.Adapter.UpdateCommand.Connection.Close();
7640 }
7641 }
7642 }
7643
7644 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
7645 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
7646 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
7647 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
7648 public virtual int Update(string InvoiceNo, string ProductID, string ProductName, double Price, int Quantity, double TotalAmount, int Original_Id, string Original_InvoiceNo, string Original_ProductID, string Original_ProductName, double Original_Price, int Original_Quantity, double Original_TotalAmount) {
7649 return this.Update(InvoiceNo, ProductID, ProductName, Price, Quantity, TotalAmount, Original_Id, Original_InvoiceNo, Original_ProductID, Original_ProductName, Original_Price, Original_Quantity, Original_TotalAmount, Original_Id);
7650 }
7651 }
7652
7653 /// <summary>
7654 ///Represents the connection and commands used to retrieve and save data.
7655 ///</summary>
7656 [global::System.ComponentModel.DesignerCategoryAttribute("code")]
7657 [global::System.ComponentModel.ToolboxItem(true)]
7658 [global::System.ComponentModel.DataObjectAttribute(true)]
7659 [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
7660 ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
7661 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
7662 public partial class RegistrationTableAdapter : global::System.ComponentModel.Component {
7663
7664 private global::System.Data.SqlClient.SqlDataAdapter _adapter;
7665
7666 private global::System.Data.SqlClient.SqlConnection _connection;
7667
7668 private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
7669
7670 private bool _clearBeforeFill;
7671
7672 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
7673 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
7674 public RegistrationTableAdapter() {
7675 this.ClearBeforeFill = true;
7676 }
7677
7678 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
7679 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
7680 private global::System.Data.SqlClient.SqlDataAdapter Adapter {
7681 get {
7682 if ((this._adapter == null)) {
7683 this.InitAdapter();
7684 }
7685 return this._adapter;
7686 }
7687 }
7688
7689 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
7690 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
7691 internal global::System.Data.SqlClient.SqlConnection Connection {
7692 get {
7693 if ((this._connection == null)) {
7694 this.InitConnection();
7695 }
7696 return this._connection;
7697 }
7698 set {
7699 this._connection = value;
7700 if ((this.Adapter.InsertCommand != null)) {
7701 this.Adapter.InsertCommand.Connection = value;
7702 }
7703 if ((this.Adapter.DeleteCommand != null)) {
7704 this.Adapter.DeleteCommand.Connection = value;
7705 }
7706 if ((this.Adapter.UpdateCommand != null)) {
7707 this.Adapter.UpdateCommand.Connection = value;
7708 }
7709 for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
7710 if ((this.CommandCollection[i] != null)) {
7711 ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
7712 }
7713 }
7714 }
7715 }
7716
7717 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
7718 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
7719 protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
7720 get {
7721 if ((this._commandCollection == null)) {
7722 this.InitCommandCollection();
7723 }
7724 return this._commandCollection;
7725 }
7726 }
7727
7728 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
7729 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
7730 public bool ClearBeforeFill {
7731 get {
7732 return this._clearBeforeFill;
7733 }
7734 set {
7735 this._clearBeforeFill = value;
7736 }
7737 }
7738
7739 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
7740 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
7741 private void InitAdapter() {
7742 this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
7743 global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
7744 tableMapping.SourceTable = "Table";
7745 tableMapping.DataSetTable = "Registration";
7746 tableMapping.ColumnMappings.Add("UserName", "UserName");
7747 tableMapping.ColumnMappings.Add("Password", "Password");
7748 tableMapping.ColumnMappings.Add("Name", "Name");
7749 tableMapping.ColumnMappings.Add("ContactNo", "ContactNo");
7750 tableMapping.ColumnMappings.Add("Email", "Email");
7751 tableMapping.ColumnMappings.Add("JoiningDate", "JoiningDate");
7752 this._adapter.TableMappings.Add(tableMapping);
7753 this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
7754 this._adapter.DeleteCommand.Connection = this.Connection;
7755 this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Registration] WHERE (([UserName] = @Original_UserName) AND ([Password] = @Original_Password) AND ([Name] = @Original_Name) AND ([ContactNo] = @Original_ContactNo) AND ((@IsNull_Email = 1 AND [Email] IS NULL) OR ([Email] = @Original_Email)) AND ((@IsNull_JoiningDate = 1 AND [JoiningDate] IS NULL) OR ([JoiningDate] = @Original_JoiningDate)))";
7756 this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
7757 this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_UserName", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserName", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
7758 this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Password", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Password", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
7759 this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Name", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
7760 this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ContactNo", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ContactNo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
7761 this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Email", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Email", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
7762 this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Email", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Email", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
7763 this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_JoiningDate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "JoiningDate", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
7764 this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_JoiningDate", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "JoiningDate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
7765 this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
7766 this._adapter.InsertCommand.Connection = this.Connection;
7767 this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Registration] ([UserName], [Password], [Name], [ContactNo], [Email], [JoiningDate]) VALUES (@UserName, @Password, @Name, @ContactNo, @Email, @JoiningDate);
7768 SELECT UserName, Password, Name, ContactNo, Email, JoiningDate FROM Registration WHERE (UserName = @UserName)";
7769 this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
7770 this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UserName", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserName", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
7771 this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Password", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Password", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
7772 this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Name", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
7773 this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ContactNo", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ContactNo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
7774 this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Email", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Email", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
7775 this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@JoiningDate", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "JoiningDate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
7776 this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
7777 this._adapter.UpdateCommand.Connection = this.Connection;
7778 this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Registration] SET [UserName] = @UserName, [Password] = @Password, [Name] = @Name, [ContactNo] = @ContactNo, [Email] = @Email, [JoiningDate] = @JoiningDate WHERE (([UserName] = @Original_UserName) AND ([Password] = @Original_Password) AND ([Name] = @Original_Name) AND ([ContactNo] = @Original_ContactNo) AND ((@IsNull_Email = 1 AND [Email] IS NULL) OR ([Email] = @Original_Email)) AND ((@IsNull_JoiningDate = 1 AND [JoiningDate] IS NULL) OR ([JoiningDate] = @Original_JoiningDate)));
7779 SELECT UserName, Password, Name, ContactNo, Email, JoiningDate FROM Registration WHERE (UserName = @UserName)";
7780 this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
7781 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@UserName", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserName", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
7782 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Password", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Password", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
7783 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Name", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
7784 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ContactNo", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ContactNo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
7785 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Email", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Email", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
7786 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@JoiningDate", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "JoiningDate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
7787 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_UserName", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "UserName", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
7788 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Password", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Password", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
7789 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Name", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
7790 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ContactNo", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ContactNo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
7791 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Email", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Email", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
7792 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Email", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Email", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
7793 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_JoiningDate", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "JoiningDate", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
7794 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_JoiningDate", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "JoiningDate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
7795 }
7796
7797 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
7798 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
7799 private void InitConnection() {
7800 this._connection = new global::System.Data.SqlClient.SqlConnection();
7801 this._connection.ConnectionString = global::WarehouseManagementSystem.Properties.Settings.Default.POS_DBConnectionString;
7802 }
7803
7804 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
7805 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
7806 private void InitCommandCollection() {
7807 this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
7808 this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
7809 this._commandCollection[0].Connection = this.Connection;
7810 this._commandCollection[0].CommandText = "SELECT UserName, Password, Name, ContactNo, Email, JoiningDate FROM dbo.Registrat" +
7811 "ion";
7812 this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
7813 }
7814
7815 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
7816 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
7817 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
7818 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
7819 public virtual int Fill(POS_DBDataSet.RegistrationDataTable dataTable) {
7820 this.Adapter.SelectCommand = this.CommandCollection[0];
7821 if ((this.ClearBeforeFill == true)) {
7822 dataTable.Clear();
7823 }
7824 int returnValue = this.Adapter.Fill(dataTable);
7825 return returnValue;
7826 }
7827
7828 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
7829 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
7830 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
7831 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
7832 public virtual POS_DBDataSet.RegistrationDataTable GetData() {
7833 this.Adapter.SelectCommand = this.CommandCollection[0];
7834 POS_DBDataSet.RegistrationDataTable dataTable = new POS_DBDataSet.RegistrationDataTable();
7835 this.Adapter.Fill(dataTable);
7836 return dataTable;
7837 }
7838
7839 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
7840 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
7841 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
7842 public virtual int Update(POS_DBDataSet.RegistrationDataTable dataTable) {
7843 return this.Adapter.Update(dataTable);
7844 }
7845
7846 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
7847 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
7848 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
7849 public virtual int Update(POS_DBDataSet dataSet) {
7850 return this.Adapter.Update(dataSet, "Registration");
7851 }
7852
7853 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
7854 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
7855 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
7856 public virtual int Update(global::System.Data.DataRow dataRow) {
7857 return this.Adapter.Update(new global::System.Data.DataRow[] {
7858 dataRow});
7859 }
7860
7861 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
7862 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
7863 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
7864 public virtual int Update(global::System.Data.DataRow[] dataRows) {
7865 return this.Adapter.Update(dataRows);
7866 }
7867
7868 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
7869 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
7870 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
7871 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
7872 public virtual int Delete(string Original_UserName, string Original_Password, string Original_Name, string Original_ContactNo, string Original_Email, string Original_JoiningDate) {
7873 if ((Original_UserName == null)) {
7874 throw new global::System.ArgumentNullException("Original_UserName");
7875 }
7876 else {
7877 this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_UserName));
7878 }
7879 if ((Original_Password == null)) {
7880 throw new global::System.ArgumentNullException("Original_Password");
7881 }
7882 else {
7883 this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Password));
7884 }
7885 if ((Original_Name == null)) {
7886 throw new global::System.ArgumentNullException("Original_Name");
7887 }
7888 else {
7889 this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Name));
7890 }
7891 if ((Original_ContactNo == null)) {
7892 throw new global::System.ArgumentNullException("Original_ContactNo");
7893 }
7894 else {
7895 this.Adapter.DeleteCommand.Parameters[3].Value = ((string)(Original_ContactNo));
7896 }
7897 if ((Original_Email == null)) {
7898 this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(1));
7899 this.Adapter.DeleteCommand.Parameters[5].Value = global::System.DBNull.Value;
7900 }
7901 else {
7902 this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(0));
7903 this.Adapter.DeleteCommand.Parameters[5].Value = ((string)(Original_Email));
7904 }
7905 if ((Original_JoiningDate == null)) {
7906 this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(1));
7907 this.Adapter.DeleteCommand.Parameters[7].Value = global::System.DBNull.Value;
7908 }
7909 else {
7910 this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(0));
7911 this.Adapter.DeleteCommand.Parameters[7].Value = ((string)(Original_JoiningDate));
7912 }
7913 global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
7914 if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
7915 != global::System.Data.ConnectionState.Open)) {
7916 this.Adapter.DeleteCommand.Connection.Open();
7917 }
7918 try {
7919 int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
7920 return returnValue;
7921 }
7922 finally {
7923 if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
7924 this.Adapter.DeleteCommand.Connection.Close();
7925 }
7926 }
7927 }
7928
7929 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
7930 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
7931 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
7932 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
7933 public virtual int Insert(string UserName, string Password, string Name, string ContactNo, string Email, string JoiningDate) {
7934 if ((UserName == null)) {
7935 throw new global::System.ArgumentNullException("UserName");
7936 }
7937 else {
7938 this.Adapter.InsertCommand.Parameters[0].Value = ((string)(UserName));
7939 }
7940 if ((Password == null)) {
7941 throw new global::System.ArgumentNullException("Password");
7942 }
7943 else {
7944 this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Password));
7945 }
7946 if ((Name == null)) {
7947 throw new global::System.ArgumentNullException("Name");
7948 }
7949 else {
7950 this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Name));
7951 }
7952 if ((ContactNo == null)) {
7953 throw new global::System.ArgumentNullException("ContactNo");
7954 }
7955 else {
7956 this.Adapter.InsertCommand.Parameters[3].Value = ((string)(ContactNo));
7957 }
7958 if ((Email == null)) {
7959 this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
7960 }
7961 else {
7962 this.Adapter.InsertCommand.Parameters[4].Value = ((string)(Email));
7963 }
7964 if ((JoiningDate == null)) {
7965 this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
7966 }
7967 else {
7968 this.Adapter.InsertCommand.Parameters[5].Value = ((string)(JoiningDate));
7969 }
7970 global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
7971 if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
7972 != global::System.Data.ConnectionState.Open)) {
7973 this.Adapter.InsertCommand.Connection.Open();
7974 }
7975 try {
7976 int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
7977 return returnValue;
7978 }
7979 finally {
7980 if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
7981 this.Adapter.InsertCommand.Connection.Close();
7982 }
7983 }
7984 }
7985
7986 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
7987 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
7988 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
7989 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
7990 public virtual int Update(string UserName, string Password, string Name, string ContactNo, string Email, string JoiningDate, string Original_UserName, string Original_Password, string Original_Name, string Original_ContactNo, string Original_Email, string Original_JoiningDate) {
7991 if ((UserName == null)) {
7992 throw new global::System.ArgumentNullException("UserName");
7993 }
7994 else {
7995 this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(UserName));
7996 }
7997 if ((Password == null)) {
7998 throw new global::System.ArgumentNullException("Password");
7999 }
8000 else {
8001 this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Password));
8002 }
8003 if ((Name == null)) {
8004 throw new global::System.ArgumentNullException("Name");
8005 }
8006 else {
8007 this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Name));
8008 }
8009 if ((ContactNo == null)) {
8010 throw new global::System.ArgumentNullException("ContactNo");
8011 }
8012 else {
8013 this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(ContactNo));
8014 }
8015 if ((Email == null)) {
8016 this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
8017 }
8018 else {
8019 this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Email));
8020 }
8021 if ((JoiningDate == null)) {
8022 this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
8023 }
8024 else {
8025 this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(JoiningDate));
8026 }
8027 if ((Original_UserName == null)) {
8028 throw new global::System.ArgumentNullException("Original_UserName");
8029 }
8030 else {
8031 this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Original_UserName));
8032 }
8033 if ((Original_Password == null)) {
8034 throw new global::System.ArgumentNullException("Original_Password");
8035 }
8036 else {
8037 this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Original_Password));
8038 }
8039 if ((Original_Name == null)) {
8040 throw new global::System.ArgumentNullException("Original_Name");
8041 }
8042 else {
8043 this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(Original_Name));
8044 }
8045 if ((Original_ContactNo == null)) {
8046 throw new global::System.ArgumentNullException("Original_ContactNo");
8047 }
8048 else {
8049 this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(Original_ContactNo));
8050 }
8051 if ((Original_Email == null)) {
8052 this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(1));
8053 this.Adapter.UpdateCommand.Parameters[11].Value = global::System.DBNull.Value;
8054 }
8055 else {
8056 this.Adapter.UpdateCommand.Parameters[10].Value = ((object)(0));
8057 this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(Original_Email));
8058 }
8059 if ((Original_JoiningDate == null)) {
8060 this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(1));
8061 this.Adapter.UpdateCommand.Parameters[13].Value = global::System.DBNull.Value;
8062 }
8063 else {
8064 this.Adapter.UpdateCommand.Parameters[12].Value = ((object)(0));
8065 this.Adapter.UpdateCommand.Parameters[13].Value = ((string)(Original_JoiningDate));
8066 }
8067 global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
8068 if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
8069 != global::System.Data.ConnectionState.Open)) {
8070 this.Adapter.UpdateCommand.Connection.Open();
8071 }
8072 try {
8073 int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
8074 return returnValue;
8075 }
8076 finally {
8077 if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
8078 this.Adapter.UpdateCommand.Connection.Close();
8079 }
8080 }
8081 }
8082
8083 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
8084 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
8085 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
8086 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
8087 public virtual int Update(string Password, string Name, string ContactNo, string Email, string JoiningDate, string Original_UserName, string Original_Password, string Original_Name, string Original_ContactNo, string Original_Email, string Original_JoiningDate) {
8088 return this.Update(Original_UserName, Password, Name, ContactNo, Email, JoiningDate, Original_UserName, Original_Password, Original_Name, Original_ContactNo, Original_Email, Original_JoiningDate);
8089 }
8090 }
8091
8092 /// <summary>
8093 ///Represents the connection and commands used to retrieve and save data.
8094 ///</summary>
8095 [global::System.ComponentModel.DesignerCategoryAttribute("code")]
8096 [global::System.ComponentModel.ToolboxItem(true)]
8097 [global::System.ComponentModel.DataObjectAttribute(true)]
8098 [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
8099 ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
8100 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
8101 public partial class StockTableAdapter : global::System.ComponentModel.Component {
8102
8103 private global::System.Data.SqlClient.SqlDataAdapter _adapter;
8104
8105 private global::System.Data.SqlClient.SqlConnection _connection;
8106
8107 private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
8108
8109 private bool _clearBeforeFill;
8110
8111 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
8112 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
8113 public StockTableAdapter() {
8114 this.ClearBeforeFill = true;
8115 }
8116
8117 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
8118 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
8119 private global::System.Data.SqlClient.SqlDataAdapter Adapter {
8120 get {
8121 if ((this._adapter == null)) {
8122 this.InitAdapter();
8123 }
8124 return this._adapter;
8125 }
8126 }
8127
8128 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
8129 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
8130 internal global::System.Data.SqlClient.SqlConnection Connection {
8131 get {
8132 if ((this._connection == null)) {
8133 this.InitConnection();
8134 }
8135 return this._connection;
8136 }
8137 set {
8138 this._connection = value;
8139 if ((this.Adapter.InsertCommand != null)) {
8140 this.Adapter.InsertCommand.Connection = value;
8141 }
8142 if ((this.Adapter.DeleteCommand != null)) {
8143 this.Adapter.DeleteCommand.Connection = value;
8144 }
8145 if ((this.Adapter.UpdateCommand != null)) {
8146 this.Adapter.UpdateCommand.Connection = value;
8147 }
8148 for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
8149 if ((this.CommandCollection[i] != null)) {
8150 ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
8151 }
8152 }
8153 }
8154 }
8155
8156 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
8157 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
8158 protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
8159 get {
8160 if ((this._commandCollection == null)) {
8161 this.InitCommandCollection();
8162 }
8163 return this._commandCollection;
8164 }
8165 }
8166
8167 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
8168 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
8169 public bool ClearBeforeFill {
8170 get {
8171 return this._clearBeforeFill;
8172 }
8173 set {
8174 this._clearBeforeFill = value;
8175 }
8176 }
8177
8178 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
8179 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
8180 private void InitAdapter() {
8181 this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
8182 global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
8183 tableMapping.SourceTable = "Table";
8184 tableMapping.DataSetTable = "Stock";
8185 tableMapping.ColumnMappings.Add("StockID", "StockID");
8186 tableMapping.ColumnMappings.Add("StockDate", "StockDate");
8187 tableMapping.ColumnMappings.Add("ProductID", "ProductID");
8188 tableMapping.ColumnMappings.Add("SupplierID", "SupplierID");
8189 tableMapping.ColumnMappings.Add("Quantity", "Quantity");
8190 this._adapter.TableMappings.Add(tableMapping);
8191 this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
8192 this._adapter.DeleteCommand.Connection = this.Connection;
8193 this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Stock] WHERE (([StockID] = @Original_StockID) AND ([StockDate]" +
8194 " = @Original_StockDate) AND ([ProductID] = @Original_ProductID) AND ([SupplierID" +
8195 "] = @Original_SupplierID) AND ([Quantity] = @Original_Quantity))";
8196 this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
8197 this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_StockID", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "StockID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
8198 this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_StockDate", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "StockDate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
8199 this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ProductID", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
8200 this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_SupplierID", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SupplierID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
8201 this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Quantity", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Quantity", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
8202 this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
8203 this._adapter.InsertCommand.Connection = this.Connection;
8204 this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Stock] ([StockID], [StockDate], [ProductID], [SupplierID], [Qu" +
8205 "antity]) VALUES (@StockID, @StockDate, @ProductID, @SupplierID, @Quantity);\r\nSEL" +
8206 "ECT StockID, StockDate, ProductID, SupplierID, Quantity FROM Stock WHERE (StockI" +
8207 "D = @StockID)";
8208 this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
8209 this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@StockID", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "StockID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
8210 this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@StockDate", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "StockDate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
8211 this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductID", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
8212 this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@SupplierID", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SupplierID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
8213 this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Quantity", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Quantity", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
8214 this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
8215 this._adapter.UpdateCommand.Connection = this.Connection;
8216 this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Stock] SET [StockID] = @StockID, [StockDate] = @StockDate, [ProductID] = @ProductID, [SupplierID] = @SupplierID, [Quantity] = @Quantity WHERE (([StockID] = @Original_StockID) AND ([StockDate] = @Original_StockDate) AND ([ProductID] = @Original_ProductID) AND ([SupplierID] = @Original_SupplierID) AND ([Quantity] = @Original_Quantity));
8217 SELECT StockID, StockDate, ProductID, SupplierID, Quantity FROM Stock WHERE (StockID = @StockID)";
8218 this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
8219 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@StockID", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "StockID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
8220 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@StockDate", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "StockDate", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
8221 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductID", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
8222 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@SupplierID", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SupplierID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
8223 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Quantity", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Quantity", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
8224 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_StockID", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "StockID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
8225 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_StockDate", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "StockDate", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
8226 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ProductID", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
8227 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_SupplierID", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SupplierID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
8228 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Quantity", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Quantity", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
8229 }
8230
8231 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
8232 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
8233 private void InitConnection() {
8234 this._connection = new global::System.Data.SqlClient.SqlConnection();
8235 this._connection.ConnectionString = global::WarehouseManagementSystem.Properties.Settings.Default.POS_DBConnectionString;
8236 }
8237
8238 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
8239 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
8240 private void InitCommandCollection() {
8241 this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
8242 this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
8243 this._commandCollection[0].Connection = this.Connection;
8244 this._commandCollection[0].CommandText = "SELECT StockID, StockDate, ProductID, SupplierID, Quantity FROM dbo.Stock";
8245 this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
8246 }
8247
8248 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
8249 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
8250 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
8251 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
8252 public virtual int Fill(POS_DBDataSet.StockDataTable dataTable) {
8253 this.Adapter.SelectCommand = this.CommandCollection[0];
8254 if ((this.ClearBeforeFill == true)) {
8255 dataTable.Clear();
8256 }
8257 int returnValue = this.Adapter.Fill(dataTable);
8258 return returnValue;
8259 }
8260
8261 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
8262 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
8263 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
8264 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
8265 public virtual POS_DBDataSet.StockDataTable GetData() {
8266 this.Adapter.SelectCommand = this.CommandCollection[0];
8267 POS_DBDataSet.StockDataTable dataTable = new POS_DBDataSet.StockDataTable();
8268 this.Adapter.Fill(dataTable);
8269 return dataTable;
8270 }
8271
8272 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
8273 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
8274 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
8275 public virtual int Update(POS_DBDataSet.StockDataTable dataTable) {
8276 return this.Adapter.Update(dataTable);
8277 }
8278
8279 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
8280 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
8281 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
8282 public virtual int Update(POS_DBDataSet dataSet) {
8283 return this.Adapter.Update(dataSet, "Stock");
8284 }
8285
8286 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
8287 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
8288 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
8289 public virtual int Update(global::System.Data.DataRow dataRow) {
8290 return this.Adapter.Update(new global::System.Data.DataRow[] {
8291 dataRow});
8292 }
8293
8294 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
8295 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
8296 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
8297 public virtual int Update(global::System.Data.DataRow[] dataRows) {
8298 return this.Adapter.Update(dataRows);
8299 }
8300
8301 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
8302 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
8303 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
8304 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
8305 public virtual int Delete(string Original_StockID, string Original_StockDate, string Original_ProductID, string Original_SupplierID, int Original_Quantity) {
8306 if ((Original_StockID == null)) {
8307 throw new global::System.ArgumentNullException("Original_StockID");
8308 }
8309 else {
8310 this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_StockID));
8311 }
8312 if ((Original_StockDate == null)) {
8313 throw new global::System.ArgumentNullException("Original_StockDate");
8314 }
8315 else {
8316 this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_StockDate));
8317 }
8318 if ((Original_ProductID == null)) {
8319 throw new global::System.ArgumentNullException("Original_ProductID");
8320 }
8321 else {
8322 this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_ProductID));
8323 }
8324 if ((Original_SupplierID == null)) {
8325 throw new global::System.ArgumentNullException("Original_SupplierID");
8326 }
8327 else {
8328 this.Adapter.DeleteCommand.Parameters[3].Value = ((string)(Original_SupplierID));
8329 }
8330 this.Adapter.DeleteCommand.Parameters[4].Value = ((int)(Original_Quantity));
8331 global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
8332 if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
8333 != global::System.Data.ConnectionState.Open)) {
8334 this.Adapter.DeleteCommand.Connection.Open();
8335 }
8336 try {
8337 int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
8338 return returnValue;
8339 }
8340 finally {
8341 if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
8342 this.Adapter.DeleteCommand.Connection.Close();
8343 }
8344 }
8345 }
8346
8347 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
8348 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
8349 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
8350 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
8351 public virtual int Insert(string StockID, string StockDate, string ProductID, string SupplierID, int Quantity) {
8352 if ((StockID == null)) {
8353 throw new global::System.ArgumentNullException("StockID");
8354 }
8355 else {
8356 this.Adapter.InsertCommand.Parameters[0].Value = ((string)(StockID));
8357 }
8358 if ((StockDate == null)) {
8359 throw new global::System.ArgumentNullException("StockDate");
8360 }
8361 else {
8362 this.Adapter.InsertCommand.Parameters[1].Value = ((string)(StockDate));
8363 }
8364 if ((ProductID == null)) {
8365 throw new global::System.ArgumentNullException("ProductID");
8366 }
8367 else {
8368 this.Adapter.InsertCommand.Parameters[2].Value = ((string)(ProductID));
8369 }
8370 if ((SupplierID == null)) {
8371 throw new global::System.ArgumentNullException("SupplierID");
8372 }
8373 else {
8374 this.Adapter.InsertCommand.Parameters[3].Value = ((string)(SupplierID));
8375 }
8376 this.Adapter.InsertCommand.Parameters[4].Value = ((int)(Quantity));
8377 global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
8378 if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
8379 != global::System.Data.ConnectionState.Open)) {
8380 this.Adapter.InsertCommand.Connection.Open();
8381 }
8382 try {
8383 int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
8384 return returnValue;
8385 }
8386 finally {
8387 if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
8388 this.Adapter.InsertCommand.Connection.Close();
8389 }
8390 }
8391 }
8392
8393 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
8394 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
8395 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
8396 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
8397 public virtual int Update(string StockID, string StockDate, string ProductID, string SupplierID, int Quantity, string Original_StockID, string Original_StockDate, string Original_ProductID, string Original_SupplierID, int Original_Quantity) {
8398 if ((StockID == null)) {
8399 throw new global::System.ArgumentNullException("StockID");
8400 }
8401 else {
8402 this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(StockID));
8403 }
8404 if ((StockDate == null)) {
8405 throw new global::System.ArgumentNullException("StockDate");
8406 }
8407 else {
8408 this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(StockDate));
8409 }
8410 if ((ProductID == null)) {
8411 throw new global::System.ArgumentNullException("ProductID");
8412 }
8413 else {
8414 this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(ProductID));
8415 }
8416 if ((SupplierID == null)) {
8417 throw new global::System.ArgumentNullException("SupplierID");
8418 }
8419 else {
8420 this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(SupplierID));
8421 }
8422 this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(Quantity));
8423 if ((Original_StockID == null)) {
8424 throw new global::System.ArgumentNullException("Original_StockID");
8425 }
8426 else {
8427 this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Original_StockID));
8428 }
8429 if ((Original_StockDate == null)) {
8430 throw new global::System.ArgumentNullException("Original_StockDate");
8431 }
8432 else {
8433 this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Original_StockDate));
8434 }
8435 if ((Original_ProductID == null)) {
8436 throw new global::System.ArgumentNullException("Original_ProductID");
8437 }
8438 else {
8439 this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Original_ProductID));
8440 }
8441 if ((Original_SupplierID == null)) {
8442 throw new global::System.ArgumentNullException("Original_SupplierID");
8443 }
8444 else {
8445 this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(Original_SupplierID));
8446 }
8447 this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(Original_Quantity));
8448 global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
8449 if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
8450 != global::System.Data.ConnectionState.Open)) {
8451 this.Adapter.UpdateCommand.Connection.Open();
8452 }
8453 try {
8454 int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
8455 return returnValue;
8456 }
8457 finally {
8458 if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
8459 this.Adapter.UpdateCommand.Connection.Close();
8460 }
8461 }
8462 }
8463
8464 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
8465 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
8466 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
8467 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
8468 public virtual int Update(string StockDate, string ProductID, string SupplierID, int Quantity, string Original_StockID, string Original_StockDate, string Original_ProductID, string Original_SupplierID, int Original_Quantity) {
8469 return this.Update(Original_StockID, StockDate, ProductID, SupplierID, Quantity, Original_StockID, Original_StockDate, Original_ProductID, Original_SupplierID, Original_Quantity);
8470 }
8471 }
8472
8473 /// <summary>
8474 ///Represents the connection and commands used to retrieve and save data.
8475 ///</summary>
8476 [global::System.ComponentModel.DesignerCategoryAttribute("code")]
8477 [global::System.ComponentModel.ToolboxItem(true)]
8478 [global::System.ComponentModel.DataObjectAttribute(true)]
8479 [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
8480 ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
8481 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
8482 public partial class SubCategoryTableAdapter : global::System.ComponentModel.Component {
8483
8484 private global::System.Data.SqlClient.SqlDataAdapter _adapter;
8485
8486 private global::System.Data.SqlClient.SqlConnection _connection;
8487
8488 private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
8489
8490 private bool _clearBeforeFill;
8491
8492 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
8493 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
8494 public SubCategoryTableAdapter() {
8495 this.ClearBeforeFill = true;
8496 }
8497
8498 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
8499 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
8500 private global::System.Data.SqlClient.SqlDataAdapter Adapter {
8501 get {
8502 if ((this._adapter == null)) {
8503 this.InitAdapter();
8504 }
8505 return this._adapter;
8506 }
8507 }
8508
8509 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
8510 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
8511 internal global::System.Data.SqlClient.SqlConnection Connection {
8512 get {
8513 if ((this._connection == null)) {
8514 this.InitConnection();
8515 }
8516 return this._connection;
8517 }
8518 set {
8519 this._connection = value;
8520 if ((this.Adapter.InsertCommand != null)) {
8521 this.Adapter.InsertCommand.Connection = value;
8522 }
8523 if ((this.Adapter.DeleteCommand != null)) {
8524 this.Adapter.DeleteCommand.Connection = value;
8525 }
8526 if ((this.Adapter.UpdateCommand != null)) {
8527 this.Adapter.UpdateCommand.Connection = value;
8528 }
8529 for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
8530 if ((this.CommandCollection[i] != null)) {
8531 ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
8532 }
8533 }
8534 }
8535 }
8536
8537 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
8538 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
8539 protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
8540 get {
8541 if ((this._commandCollection == null)) {
8542 this.InitCommandCollection();
8543 }
8544 return this._commandCollection;
8545 }
8546 }
8547
8548 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
8549 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
8550 public bool ClearBeforeFill {
8551 get {
8552 return this._clearBeforeFill;
8553 }
8554 set {
8555 this._clearBeforeFill = value;
8556 }
8557 }
8558
8559 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
8560 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
8561 private void InitAdapter() {
8562 this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
8563 global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
8564 tableMapping.SourceTable = "Table";
8565 tableMapping.DataSetTable = "SubCategory";
8566 tableMapping.ColumnMappings.Add("ID", "ID");
8567 tableMapping.ColumnMappings.Add("SubCategoryName", "SubCategoryName");
8568 tableMapping.ColumnMappings.Add("CategoryID", "CategoryID");
8569 this._adapter.TableMappings.Add(tableMapping);
8570 this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
8571 this._adapter.DeleteCommand.Connection = this.Connection;
8572 this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[SubCategory] WHERE (([ID] = @Original_ID) AND ([SubCategoryNam" +
8573 "e] = @Original_SubCategoryName) AND ([CategoryID] = @Original_CategoryID))";
8574 this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
8575 this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
8576 this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_SubCategoryName", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SubCategoryName", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
8577 this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CategoryID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CategoryID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
8578 this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
8579 this._adapter.InsertCommand.Connection = this.Connection;
8580 this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[SubCategory] ([SubCategoryName], [CategoryID]) VALUES (@SubCat" +
8581 "egoryName, @CategoryID);\r\nSELECT ID, SubCategoryName, CategoryID FROM SubCategor" +
8582 "y WHERE (ID = SCOPE_IDENTITY())";
8583 this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
8584 this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@SubCategoryName", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SubCategoryName", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
8585 this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CategoryID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CategoryID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
8586 this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
8587 this._adapter.UpdateCommand.Connection = this.Connection;
8588 this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[SubCategory] SET [SubCategoryName] = @SubCategoryName, [CategoryID] = @CategoryID WHERE (([ID] = @Original_ID) AND ([SubCategoryName] = @Original_SubCategoryName) AND ([CategoryID] = @Original_CategoryID));
8589 SELECT ID, SubCategoryName, CategoryID FROM SubCategory WHERE (ID = @ID)";
8590 this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
8591 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@SubCategoryName", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SubCategoryName", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
8592 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@CategoryID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CategoryID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
8593 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
8594 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_SubCategoryName", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SubCategoryName", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
8595 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_CategoryID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "CategoryID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
8596 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
8597 }
8598
8599 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
8600 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
8601 private void InitConnection() {
8602 this._connection = new global::System.Data.SqlClient.SqlConnection();
8603 this._connection.ConnectionString = global::WarehouseManagementSystem.Properties.Settings.Default.POS_DBConnectionString;
8604 }
8605
8606 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
8607 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
8608 private void InitCommandCollection() {
8609 this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
8610 this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
8611 this._commandCollection[0].Connection = this.Connection;
8612 this._commandCollection[0].CommandText = "SELECT ID, SubCategoryName, CategoryID FROM dbo.SubCategory";
8613 this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
8614 }
8615
8616 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
8617 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
8618 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
8619 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
8620 public virtual int Fill(POS_DBDataSet.SubCategoryDataTable dataTable) {
8621 this.Adapter.SelectCommand = this.CommandCollection[0];
8622 if ((this.ClearBeforeFill == true)) {
8623 dataTable.Clear();
8624 }
8625 int returnValue = this.Adapter.Fill(dataTable);
8626 return returnValue;
8627 }
8628
8629 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
8630 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
8631 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
8632 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
8633 public virtual POS_DBDataSet.SubCategoryDataTable GetData() {
8634 this.Adapter.SelectCommand = this.CommandCollection[0];
8635 POS_DBDataSet.SubCategoryDataTable dataTable = new POS_DBDataSet.SubCategoryDataTable();
8636 this.Adapter.Fill(dataTable);
8637 return dataTable;
8638 }
8639
8640 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
8641 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
8642 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
8643 public virtual int Update(POS_DBDataSet.SubCategoryDataTable dataTable) {
8644 return this.Adapter.Update(dataTable);
8645 }
8646
8647 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
8648 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
8649 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
8650 public virtual int Update(POS_DBDataSet dataSet) {
8651 return this.Adapter.Update(dataSet, "SubCategory");
8652 }
8653
8654 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
8655 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
8656 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
8657 public virtual int Update(global::System.Data.DataRow dataRow) {
8658 return this.Adapter.Update(new global::System.Data.DataRow[] {
8659 dataRow});
8660 }
8661
8662 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
8663 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
8664 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
8665 public virtual int Update(global::System.Data.DataRow[] dataRows) {
8666 return this.Adapter.Update(dataRows);
8667 }
8668
8669 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
8670 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
8671 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
8672 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
8673 public virtual int Delete(int Original_ID, string Original_SubCategoryName, int Original_CategoryID) {
8674 this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
8675 if ((Original_SubCategoryName == null)) {
8676 throw new global::System.ArgumentNullException("Original_SubCategoryName");
8677 }
8678 else {
8679 this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_SubCategoryName));
8680 }
8681 this.Adapter.DeleteCommand.Parameters[2].Value = ((int)(Original_CategoryID));
8682 global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
8683 if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
8684 != global::System.Data.ConnectionState.Open)) {
8685 this.Adapter.DeleteCommand.Connection.Open();
8686 }
8687 try {
8688 int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
8689 return returnValue;
8690 }
8691 finally {
8692 if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
8693 this.Adapter.DeleteCommand.Connection.Close();
8694 }
8695 }
8696 }
8697
8698 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
8699 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
8700 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
8701 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
8702 public virtual int Insert(string SubCategoryName, int CategoryID) {
8703 if ((SubCategoryName == null)) {
8704 throw new global::System.ArgumentNullException("SubCategoryName");
8705 }
8706 else {
8707 this.Adapter.InsertCommand.Parameters[0].Value = ((string)(SubCategoryName));
8708 }
8709 this.Adapter.InsertCommand.Parameters[1].Value = ((int)(CategoryID));
8710 global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
8711 if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
8712 != global::System.Data.ConnectionState.Open)) {
8713 this.Adapter.InsertCommand.Connection.Open();
8714 }
8715 try {
8716 int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
8717 return returnValue;
8718 }
8719 finally {
8720 if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
8721 this.Adapter.InsertCommand.Connection.Close();
8722 }
8723 }
8724 }
8725
8726 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
8727 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
8728 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
8729 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
8730 public virtual int Update(string SubCategoryName, int CategoryID, int Original_ID, string Original_SubCategoryName, int Original_CategoryID, int ID) {
8731 if ((SubCategoryName == null)) {
8732 throw new global::System.ArgumentNullException("SubCategoryName");
8733 }
8734 else {
8735 this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(SubCategoryName));
8736 }
8737 this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(CategoryID));
8738 this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_ID));
8739 if ((Original_SubCategoryName == null)) {
8740 throw new global::System.ArgumentNullException("Original_SubCategoryName");
8741 }
8742 else {
8743 this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_SubCategoryName));
8744 }
8745 this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(Original_CategoryID));
8746 this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(ID));
8747 global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
8748 if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
8749 != global::System.Data.ConnectionState.Open)) {
8750 this.Adapter.UpdateCommand.Connection.Open();
8751 }
8752 try {
8753 int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
8754 return returnValue;
8755 }
8756 finally {
8757 if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
8758 this.Adapter.UpdateCommand.Connection.Close();
8759 }
8760 }
8761 }
8762
8763 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
8764 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
8765 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
8766 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
8767 public virtual int Update(string SubCategoryName, int CategoryID, int Original_ID, string Original_SubCategoryName, int Original_CategoryID) {
8768 return this.Update(SubCategoryName, CategoryID, Original_ID, Original_SubCategoryName, Original_CategoryID, Original_ID);
8769 }
8770 }
8771
8772 /// <summary>
8773 ///Represents the connection and commands used to retrieve and save data.
8774 ///</summary>
8775 [global::System.ComponentModel.DesignerCategoryAttribute("code")]
8776 [global::System.ComponentModel.ToolboxItem(true)]
8777 [global::System.ComponentModel.DataObjectAttribute(true)]
8778 [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
8779 ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
8780 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
8781 public partial class SupplierTableAdapter : global::System.ComponentModel.Component {
8782
8783 private global::System.Data.SqlClient.SqlDataAdapter _adapter;
8784
8785 private global::System.Data.SqlClient.SqlConnection _connection;
8786
8787 private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
8788
8789 private bool _clearBeforeFill;
8790
8791 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
8792 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
8793 public SupplierTableAdapter() {
8794 this.ClearBeforeFill = true;
8795 }
8796
8797 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
8798 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
8799 private global::System.Data.SqlClient.SqlDataAdapter Adapter {
8800 get {
8801 if ((this._adapter == null)) {
8802 this.InitAdapter();
8803 }
8804 return this._adapter;
8805 }
8806 }
8807
8808 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
8809 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
8810 internal global::System.Data.SqlClient.SqlConnection Connection {
8811 get {
8812 if ((this._connection == null)) {
8813 this.InitConnection();
8814 }
8815 return this._connection;
8816 }
8817 set {
8818 this._connection = value;
8819 if ((this.Adapter.InsertCommand != null)) {
8820 this.Adapter.InsertCommand.Connection = value;
8821 }
8822 if ((this.Adapter.DeleteCommand != null)) {
8823 this.Adapter.DeleteCommand.Connection = value;
8824 }
8825 if ((this.Adapter.UpdateCommand != null)) {
8826 this.Adapter.UpdateCommand.Connection = value;
8827 }
8828 for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
8829 if ((this.CommandCollection[i] != null)) {
8830 ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
8831 }
8832 }
8833 }
8834 }
8835
8836 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
8837 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
8838 protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
8839 get {
8840 if ((this._commandCollection == null)) {
8841 this.InitCommandCollection();
8842 }
8843 return this._commandCollection;
8844 }
8845 }
8846
8847 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
8848 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
8849 public bool ClearBeforeFill {
8850 get {
8851 return this._clearBeforeFill;
8852 }
8853 set {
8854 this._clearBeforeFill = value;
8855 }
8856 }
8857
8858 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
8859 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
8860 private void InitAdapter() {
8861 this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
8862 global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
8863 tableMapping.SourceTable = "Table";
8864 tableMapping.DataSetTable = "Supplier";
8865 tableMapping.ColumnMappings.Add("SupplierId", "SupplierId");
8866 tableMapping.ColumnMappings.Add("SupplierName", "SupplierName");
8867 tableMapping.ColumnMappings.Add("Address", "Address");
8868 tableMapping.ColumnMappings.Add("City", "City");
8869 tableMapping.ColumnMappings.Add("ContactNo", "ContactNo");
8870 tableMapping.ColumnMappings.Add("ContactNo1", "ContactNo1");
8871 tableMapping.ColumnMappings.Add("Email", "Email");
8872 tableMapping.ColumnMappings.Add("Notes", "Notes");
8873 this._adapter.TableMappings.Add(tableMapping);
8874 this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
8875 this._adapter.DeleteCommand.Connection = this.Connection;
8876 this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Supplier] WHERE (([SupplierId] = @Original_SupplierId) AND ([SupplierName] = @Original_SupplierName) AND ([Address] = @Original_Address) AND ([City] = @Original_City) AND ([ContactNo] = @Original_ContactNo) AND ((@IsNull_ContactNo1 = 1 AND [ContactNo1] IS NULL) OR ([ContactNo1] = @Original_ContactNo1)) AND ((@IsNull_Email = 1 AND [Email] IS NULL) OR ([Email] = @Original_Email)))";
8877 this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
8878 this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_SupplierId", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SupplierId", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
8879 this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_SupplierName", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SupplierName", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
8880 this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Address", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Address", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
8881 this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_City", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "City", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
8882 this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ContactNo", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ContactNo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
8883 this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ContactNo1", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ContactNo1", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
8884 this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ContactNo1", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ContactNo1", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
8885 this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Email", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Email", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
8886 this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Email", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Email", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
8887 this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
8888 this._adapter.InsertCommand.Connection = this.Connection;
8889 this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Supplier] ([SupplierId], [SupplierName], [Address], [City], [ContactNo], [ContactNo1], [Email], [Notes]) VALUES (@SupplierId, @SupplierName, @Address, @City, @ContactNo, @ContactNo1, @Email, @Notes);
8890 SELECT SupplierId, SupplierName, Address, City, ContactNo, ContactNo1, Email, Notes FROM Supplier WHERE (SupplierId = @SupplierId)";
8891 this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
8892 this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@SupplierId", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SupplierId", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
8893 this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@SupplierName", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SupplierName", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
8894 this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Address", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Address", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
8895 this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@City", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "City", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
8896 this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ContactNo", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ContactNo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
8897 this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ContactNo1", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ContactNo1", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
8898 this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Email", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Email", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
8899 this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Notes", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Notes", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
8900 this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
8901 this._adapter.UpdateCommand.Connection = this.Connection;
8902 this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Supplier] SET [SupplierId] = @SupplierId, [SupplierName] = @SupplierName, [Address] = @Address, [City] = @City, [ContactNo] = @ContactNo, [ContactNo1] = @ContactNo1, [Email] = @Email, [Notes] = @Notes WHERE (([SupplierId] = @Original_SupplierId) AND ([SupplierName] = @Original_SupplierName) AND ([Address] = @Original_Address) AND ([City] = @Original_City) AND ([ContactNo] = @Original_ContactNo) AND ((@IsNull_ContactNo1 = 1 AND [ContactNo1] IS NULL) OR ([ContactNo1] = @Original_ContactNo1)) AND ((@IsNull_Email = 1 AND [Email] IS NULL) OR ([Email] = @Original_Email)));
8903 SELECT SupplierId, SupplierName, Address, City, ContactNo, ContactNo1, Email, Notes FROM Supplier WHERE (SupplierId = @SupplierId)";
8904 this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
8905 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@SupplierId", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SupplierId", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
8906 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@SupplierName", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SupplierName", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
8907 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Address", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Address", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
8908 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@City", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "City", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
8909 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ContactNo", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ContactNo", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
8910 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ContactNo1", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ContactNo1", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
8911 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Email", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Email", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
8912 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Notes", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Notes", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
8913 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_SupplierId", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SupplierId", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
8914 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_SupplierName", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "SupplierName", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
8915 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Address", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Address", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
8916 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_City", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "City", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
8917 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ContactNo", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ContactNo", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
8918 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_ContactNo1", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ContactNo1", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
8919 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ContactNo1", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ContactNo1", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
8920 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Email", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Email", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
8921 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Email", global::System.Data.SqlDbType.VarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Email", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
8922 }
8923
8924 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
8925 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
8926 private void InitConnection() {
8927 this._connection = new global::System.Data.SqlClient.SqlConnection();
8928 this._connection.ConnectionString = global::WarehouseManagementSystem.Properties.Settings.Default.POS_DBConnectionString;
8929 }
8930
8931 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
8932 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
8933 private void InitCommandCollection() {
8934 this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
8935 this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
8936 this._commandCollection[0].Connection = this.Connection;
8937 this._commandCollection[0].CommandText = "SELECT SupplierId, SupplierName, Address, City, ContactNo, ContactNo1, Email, Not" +
8938 "es FROM dbo.Supplier";
8939 this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
8940 }
8941
8942 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
8943 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
8944 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
8945 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
8946 public virtual int Fill(POS_DBDataSet.SupplierDataTable dataTable) {
8947 this.Adapter.SelectCommand = this.CommandCollection[0];
8948 if ((this.ClearBeforeFill == true)) {
8949 dataTable.Clear();
8950 }
8951 int returnValue = this.Adapter.Fill(dataTable);
8952 return returnValue;
8953 }
8954
8955 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
8956 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
8957 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
8958 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
8959 public virtual POS_DBDataSet.SupplierDataTable GetData() {
8960 this.Adapter.SelectCommand = this.CommandCollection[0];
8961 POS_DBDataSet.SupplierDataTable dataTable = new POS_DBDataSet.SupplierDataTable();
8962 this.Adapter.Fill(dataTable);
8963 return dataTable;
8964 }
8965
8966 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
8967 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
8968 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
8969 public virtual int Update(POS_DBDataSet.SupplierDataTable dataTable) {
8970 return this.Adapter.Update(dataTable);
8971 }
8972
8973 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
8974 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
8975 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
8976 public virtual int Update(POS_DBDataSet dataSet) {
8977 return this.Adapter.Update(dataSet, "Supplier");
8978 }
8979
8980 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
8981 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
8982 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
8983 public virtual int Update(global::System.Data.DataRow dataRow) {
8984 return this.Adapter.Update(new global::System.Data.DataRow[] {
8985 dataRow});
8986 }
8987
8988 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
8989 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
8990 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
8991 public virtual int Update(global::System.Data.DataRow[] dataRows) {
8992 return this.Adapter.Update(dataRows);
8993 }
8994
8995 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
8996 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
8997 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
8998 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
8999 public virtual int Delete(string Original_SupplierId, string Original_SupplierName, string Original_Address, string Original_City, string Original_ContactNo, string Original_ContactNo1, string Original_Email) {
9000 if ((Original_SupplierId == null)) {
9001 throw new global::System.ArgumentNullException("Original_SupplierId");
9002 }
9003 else {
9004 this.Adapter.DeleteCommand.Parameters[0].Value = ((string)(Original_SupplierId));
9005 }
9006 if ((Original_SupplierName == null)) {
9007 throw new global::System.ArgumentNullException("Original_SupplierName");
9008 }
9009 else {
9010 this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_SupplierName));
9011 }
9012 if ((Original_Address == null)) {
9013 throw new global::System.ArgumentNullException("Original_Address");
9014 }
9015 else {
9016 this.Adapter.DeleteCommand.Parameters[2].Value = ((string)(Original_Address));
9017 }
9018 if ((Original_City == null)) {
9019 throw new global::System.ArgumentNullException("Original_City");
9020 }
9021 else {
9022 this.Adapter.DeleteCommand.Parameters[3].Value = ((string)(Original_City));
9023 }
9024 if ((Original_ContactNo == null)) {
9025 throw new global::System.ArgumentNullException("Original_ContactNo");
9026 }
9027 else {
9028 this.Adapter.DeleteCommand.Parameters[4].Value = ((string)(Original_ContactNo));
9029 }
9030 if ((Original_ContactNo1 == null)) {
9031 this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(1));
9032 this.Adapter.DeleteCommand.Parameters[6].Value = global::System.DBNull.Value;
9033 }
9034 else {
9035 this.Adapter.DeleteCommand.Parameters[5].Value = ((object)(0));
9036 this.Adapter.DeleteCommand.Parameters[6].Value = ((string)(Original_ContactNo1));
9037 }
9038 if ((Original_Email == null)) {
9039 this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(1));
9040 this.Adapter.DeleteCommand.Parameters[8].Value = global::System.DBNull.Value;
9041 }
9042 else {
9043 this.Adapter.DeleteCommand.Parameters[7].Value = ((object)(0));
9044 this.Adapter.DeleteCommand.Parameters[8].Value = ((string)(Original_Email));
9045 }
9046 global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
9047 if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
9048 != global::System.Data.ConnectionState.Open)) {
9049 this.Adapter.DeleteCommand.Connection.Open();
9050 }
9051 try {
9052 int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
9053 return returnValue;
9054 }
9055 finally {
9056 if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
9057 this.Adapter.DeleteCommand.Connection.Close();
9058 }
9059 }
9060 }
9061
9062 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
9063 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
9064 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
9065 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
9066 public virtual int Insert(string SupplierId, string SupplierName, string Address, string City, string ContactNo, string ContactNo1, string Email, string Notes) {
9067 if ((SupplierId == null)) {
9068 throw new global::System.ArgumentNullException("SupplierId");
9069 }
9070 else {
9071 this.Adapter.InsertCommand.Parameters[0].Value = ((string)(SupplierId));
9072 }
9073 if ((SupplierName == null)) {
9074 throw new global::System.ArgumentNullException("SupplierName");
9075 }
9076 else {
9077 this.Adapter.InsertCommand.Parameters[1].Value = ((string)(SupplierName));
9078 }
9079 if ((Address == null)) {
9080 throw new global::System.ArgumentNullException("Address");
9081 }
9082 else {
9083 this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Address));
9084 }
9085 if ((City == null)) {
9086 throw new global::System.ArgumentNullException("City");
9087 }
9088 else {
9089 this.Adapter.InsertCommand.Parameters[3].Value = ((string)(City));
9090 }
9091 if ((ContactNo == null)) {
9092 throw new global::System.ArgumentNullException("ContactNo");
9093 }
9094 else {
9095 this.Adapter.InsertCommand.Parameters[4].Value = ((string)(ContactNo));
9096 }
9097 if ((ContactNo1 == null)) {
9098 this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
9099 }
9100 else {
9101 this.Adapter.InsertCommand.Parameters[5].Value = ((string)(ContactNo1));
9102 }
9103 if ((Email == null)) {
9104 this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value;
9105 }
9106 else {
9107 this.Adapter.InsertCommand.Parameters[6].Value = ((string)(Email));
9108 }
9109 if ((Notes == null)) {
9110 this.Adapter.InsertCommand.Parameters[7].Value = global::System.DBNull.Value;
9111 }
9112 else {
9113 this.Adapter.InsertCommand.Parameters[7].Value = ((string)(Notes));
9114 }
9115 global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
9116 if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
9117 != global::System.Data.ConnectionState.Open)) {
9118 this.Adapter.InsertCommand.Connection.Open();
9119 }
9120 try {
9121 int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
9122 return returnValue;
9123 }
9124 finally {
9125 if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
9126 this.Adapter.InsertCommand.Connection.Close();
9127 }
9128 }
9129 }
9130
9131 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
9132 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
9133 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
9134 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
9135 public virtual int Update(string SupplierId, string SupplierName, string Address, string City, string ContactNo, string ContactNo1, string Email, string Notes, string Original_SupplierId, string Original_SupplierName, string Original_Address, string Original_City, string Original_ContactNo, string Original_ContactNo1, string Original_Email) {
9136 if ((SupplierId == null)) {
9137 throw new global::System.ArgumentNullException("SupplierId");
9138 }
9139 else {
9140 this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(SupplierId));
9141 }
9142 if ((SupplierName == null)) {
9143 throw new global::System.ArgumentNullException("SupplierName");
9144 }
9145 else {
9146 this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(SupplierName));
9147 }
9148 if ((Address == null)) {
9149 throw new global::System.ArgumentNullException("Address");
9150 }
9151 else {
9152 this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Address));
9153 }
9154 if ((City == null)) {
9155 throw new global::System.ArgumentNullException("City");
9156 }
9157 else {
9158 this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(City));
9159 }
9160 if ((ContactNo == null)) {
9161 throw new global::System.ArgumentNullException("ContactNo");
9162 }
9163 else {
9164 this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(ContactNo));
9165 }
9166 if ((ContactNo1 == null)) {
9167 this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
9168 }
9169 else {
9170 this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(ContactNo1));
9171 }
9172 if ((Email == null)) {
9173 this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
9174 }
9175 else {
9176 this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Email));
9177 }
9178 if ((Notes == null)) {
9179 this.Adapter.UpdateCommand.Parameters[7].Value = global::System.DBNull.Value;
9180 }
9181 else {
9182 this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Notes));
9183 }
9184 if ((Original_SupplierId == null)) {
9185 throw new global::System.ArgumentNullException("Original_SupplierId");
9186 }
9187 else {
9188 this.Adapter.UpdateCommand.Parameters[8].Value = ((string)(Original_SupplierId));
9189 }
9190 if ((Original_SupplierName == null)) {
9191 throw new global::System.ArgumentNullException("Original_SupplierName");
9192 }
9193 else {
9194 this.Adapter.UpdateCommand.Parameters[9].Value = ((string)(Original_SupplierName));
9195 }
9196 if ((Original_Address == null)) {
9197 throw new global::System.ArgumentNullException("Original_Address");
9198 }
9199 else {
9200 this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Original_Address));
9201 }
9202 if ((Original_City == null)) {
9203 throw new global::System.ArgumentNullException("Original_City");
9204 }
9205 else {
9206 this.Adapter.UpdateCommand.Parameters[11].Value = ((string)(Original_City));
9207 }
9208 if ((Original_ContactNo == null)) {
9209 throw new global::System.ArgumentNullException("Original_ContactNo");
9210 }
9211 else {
9212 this.Adapter.UpdateCommand.Parameters[12].Value = ((string)(Original_ContactNo));
9213 }
9214 if ((Original_ContactNo1 == null)) {
9215 this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(1));
9216 this.Adapter.UpdateCommand.Parameters[14].Value = global::System.DBNull.Value;
9217 }
9218 else {
9219 this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(0));
9220 this.Adapter.UpdateCommand.Parameters[14].Value = ((string)(Original_ContactNo1));
9221 }
9222 if ((Original_Email == null)) {
9223 this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(1));
9224 this.Adapter.UpdateCommand.Parameters[16].Value = global::System.DBNull.Value;
9225 }
9226 else {
9227 this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(0));
9228 this.Adapter.UpdateCommand.Parameters[16].Value = ((string)(Original_Email));
9229 }
9230 global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
9231 if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
9232 != global::System.Data.ConnectionState.Open)) {
9233 this.Adapter.UpdateCommand.Connection.Open();
9234 }
9235 try {
9236 int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
9237 return returnValue;
9238 }
9239 finally {
9240 if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
9241 this.Adapter.UpdateCommand.Connection.Close();
9242 }
9243 }
9244 }
9245
9246 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
9247 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
9248 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
9249 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
9250 public virtual int Update(string SupplierName, string Address, string City, string ContactNo, string ContactNo1, string Email, string Notes, string Original_SupplierId, string Original_SupplierName, string Original_Address, string Original_City, string Original_ContactNo, string Original_ContactNo1, string Original_Email) {
9251 return this.Update(Original_SupplierId, SupplierName, Address, City, ContactNo, ContactNo1, Email, Notes, Original_SupplierId, Original_SupplierName, Original_Address, Original_City, Original_ContactNo, Original_ContactNo1, Original_Email);
9252 }
9253 }
9254
9255 /// <summary>
9256 ///Represents the connection and commands used to retrieve and save data.
9257 ///</summary>
9258 [global::System.ComponentModel.DesignerCategoryAttribute("code")]
9259 [global::System.ComponentModel.ToolboxItem(true)]
9260 [global::System.ComponentModel.DataObjectAttribute(true)]
9261 [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
9262 ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
9263 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
9264 public partial class Temp_StockTableAdapter : global::System.ComponentModel.Component {
9265
9266 private global::System.Data.SqlClient.SqlDataAdapter _adapter;
9267
9268 private global::System.Data.SqlClient.SqlConnection _connection;
9269
9270 private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
9271
9272 private bool _clearBeforeFill;
9273
9274 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
9275 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
9276 public Temp_StockTableAdapter() {
9277 this.ClearBeforeFill = true;
9278 }
9279
9280 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
9281 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
9282 private global::System.Data.SqlClient.SqlDataAdapter Adapter {
9283 get {
9284 if ((this._adapter == null)) {
9285 this.InitAdapter();
9286 }
9287 return this._adapter;
9288 }
9289 }
9290
9291 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
9292 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
9293 internal global::System.Data.SqlClient.SqlConnection Connection {
9294 get {
9295 if ((this._connection == null)) {
9296 this.InitConnection();
9297 }
9298 return this._connection;
9299 }
9300 set {
9301 this._connection = value;
9302 if ((this.Adapter.InsertCommand != null)) {
9303 this.Adapter.InsertCommand.Connection = value;
9304 }
9305 if ((this.Adapter.DeleteCommand != null)) {
9306 this.Adapter.DeleteCommand.Connection = value;
9307 }
9308 if ((this.Adapter.UpdateCommand != null)) {
9309 this.Adapter.UpdateCommand.Connection = value;
9310 }
9311 for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
9312 if ((this.CommandCollection[i] != null)) {
9313 ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
9314 }
9315 }
9316 }
9317 }
9318
9319 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
9320 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
9321 protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
9322 get {
9323 if ((this._commandCollection == null)) {
9324 this.InitCommandCollection();
9325 }
9326 return this._commandCollection;
9327 }
9328 }
9329
9330 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
9331 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
9332 public bool ClearBeforeFill {
9333 get {
9334 return this._clearBeforeFill;
9335 }
9336 set {
9337 this._clearBeforeFill = value;
9338 }
9339 }
9340
9341 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
9342 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
9343 private void InitAdapter() {
9344 this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
9345 global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
9346 tableMapping.SourceTable = "Table";
9347 tableMapping.DataSetTable = "Temp_Stock";
9348 tableMapping.ColumnMappings.Add("ID", "ID");
9349 tableMapping.ColumnMappings.Add("ProductID", "ProductID");
9350 tableMapping.ColumnMappings.Add("Quantity", "Quantity");
9351 this._adapter.TableMappings.Add(tableMapping);
9352 this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
9353 this._adapter.DeleteCommand.Connection = this.Connection;
9354 this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Temp_Stock] WHERE (([ID] = @Original_ID) AND ([ProductID] = @O" +
9355 "riginal_ProductID) AND ([Quantity] = @Original_Quantity))";
9356 this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
9357 this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
9358 this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ProductID", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
9359 this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Quantity", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Quantity", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
9360 this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
9361 this._adapter.InsertCommand.Connection = this.Connection;
9362 this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Temp_Stock] ([ProductID], [Quantity]) VALUES (@ProductID, @Qua" +
9363 "ntity);\r\nSELECT ID, ProductID, Quantity FROM Temp_Stock WHERE (ID = SCOPE_IDENTI" +
9364 "TY())";
9365 this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
9366 this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductID", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
9367 this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Quantity", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Quantity", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
9368 this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
9369 this._adapter.UpdateCommand.Connection = this.Connection;
9370 this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[Temp_Stock] SET [ProductID] = @ProductID, [Quantity] = @Quantity WH" +
9371 "ERE (([ID] = @Original_ID) AND ([ProductID] = @Original_ProductID) AND ([Quantit" +
9372 "y] = @Original_Quantity));\r\nSELECT ID, ProductID, Quantity FROM Temp_Stock WHERE" +
9373 " (ID = @ID)";
9374 this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
9375 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ProductID", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
9376 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Quantity", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Quantity", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
9377 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
9378 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ProductID", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ProductID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
9379 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Quantity", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Quantity", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
9380 this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
9381 }
9382
9383 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
9384 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
9385 private void InitConnection() {
9386 this._connection = new global::System.Data.SqlClient.SqlConnection();
9387 this._connection.ConnectionString = global::WarehouseManagementSystem.Properties.Settings.Default.POS_DBConnectionString;
9388 }
9389
9390 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
9391 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
9392 private void InitCommandCollection() {
9393 this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
9394 this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
9395 this._commandCollection[0].Connection = this.Connection;
9396 this._commandCollection[0].CommandText = "SELECT ID, ProductID, Quantity FROM dbo.Temp_Stock";
9397 this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
9398 }
9399
9400 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
9401 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
9402 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
9403 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
9404 public virtual int Fill(POS_DBDataSet.Temp_StockDataTable dataTable) {
9405 this.Adapter.SelectCommand = this.CommandCollection[0];
9406 if ((this.ClearBeforeFill == true)) {
9407 dataTable.Clear();
9408 }
9409 int returnValue = this.Adapter.Fill(dataTable);
9410 return returnValue;
9411 }
9412
9413 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
9414 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
9415 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
9416 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
9417 public virtual POS_DBDataSet.Temp_StockDataTable GetData() {
9418 this.Adapter.SelectCommand = this.CommandCollection[0];
9419 POS_DBDataSet.Temp_StockDataTable dataTable = new POS_DBDataSet.Temp_StockDataTable();
9420 this.Adapter.Fill(dataTable);
9421 return dataTable;
9422 }
9423
9424 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
9425 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
9426 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
9427 public virtual int Update(POS_DBDataSet.Temp_StockDataTable dataTable) {
9428 return this.Adapter.Update(dataTable);
9429 }
9430
9431 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
9432 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
9433 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
9434 public virtual int Update(POS_DBDataSet dataSet) {
9435 return this.Adapter.Update(dataSet, "Temp_Stock");
9436 }
9437
9438 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
9439 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
9440 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
9441 public virtual int Update(global::System.Data.DataRow dataRow) {
9442 return this.Adapter.Update(new global::System.Data.DataRow[] {
9443 dataRow});
9444 }
9445
9446 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
9447 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
9448 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
9449 public virtual int Update(global::System.Data.DataRow[] dataRows) {
9450 return this.Adapter.Update(dataRows);
9451 }
9452
9453 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
9454 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
9455 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
9456 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
9457 public virtual int Delete(int Original_ID, string Original_ProductID, int Original_Quantity) {
9458 this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
9459 if ((Original_ProductID == null)) {
9460 throw new global::System.ArgumentNullException("Original_ProductID");
9461 }
9462 else {
9463 this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_ProductID));
9464 }
9465 this.Adapter.DeleteCommand.Parameters[2].Value = ((int)(Original_Quantity));
9466 global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
9467 if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
9468 != global::System.Data.ConnectionState.Open)) {
9469 this.Adapter.DeleteCommand.Connection.Open();
9470 }
9471 try {
9472 int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
9473 return returnValue;
9474 }
9475 finally {
9476 if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
9477 this.Adapter.DeleteCommand.Connection.Close();
9478 }
9479 }
9480 }
9481
9482 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
9483 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
9484 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
9485 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
9486 public virtual int Insert(string ProductID, int Quantity) {
9487 if ((ProductID == null)) {
9488 throw new global::System.ArgumentNullException("ProductID");
9489 }
9490 else {
9491 this.Adapter.InsertCommand.Parameters[0].Value = ((string)(ProductID));
9492 }
9493 this.Adapter.InsertCommand.Parameters[1].Value = ((int)(Quantity));
9494 global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
9495 if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
9496 != global::System.Data.ConnectionState.Open)) {
9497 this.Adapter.InsertCommand.Connection.Open();
9498 }
9499 try {
9500 int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
9501 return returnValue;
9502 }
9503 finally {
9504 if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
9505 this.Adapter.InsertCommand.Connection.Close();
9506 }
9507 }
9508 }
9509
9510 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
9511 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
9512 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
9513 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
9514 public virtual int Update(string ProductID, int Quantity, int Original_ID, string Original_ProductID, int Original_Quantity, int ID) {
9515 if ((ProductID == null)) {
9516 throw new global::System.ArgumentNullException("ProductID");
9517 }
9518 else {
9519 this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(ProductID));
9520 }
9521 this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(Quantity));
9522 this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_ID));
9523 if ((Original_ProductID == null)) {
9524 throw new global::System.ArgumentNullException("Original_ProductID");
9525 }
9526 else {
9527 this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Original_ProductID));
9528 }
9529 this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(Original_Quantity));
9530 this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(ID));
9531 global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
9532 if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
9533 != global::System.Data.ConnectionState.Open)) {
9534 this.Adapter.UpdateCommand.Connection.Open();
9535 }
9536 try {
9537 int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
9538 return returnValue;
9539 }
9540 finally {
9541 if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
9542 this.Adapter.UpdateCommand.Connection.Close();
9543 }
9544 }
9545 }
9546
9547 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
9548 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
9549 [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
9550 [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
9551 public virtual int Update(string ProductID, int Quantity, int Original_ID, string Original_ProductID, int Original_Quantity) {
9552 return this.Update(ProductID, Quantity, Original_ID, Original_ProductID, Original_Quantity, Original_ID);
9553 }
9554 }
9555 }
9556
9557 #pragma warning restore 1591